Author |
Message |
Topic: Better way of Digi Volume, PWM sound output |
yerpa
Replies: 3
Views: 7452
|
Forum: General CCS C Discussion Posted: Thu Aug 28, 2014 3:15 pm Subject: Better way of Digi Volume, PWM sound output |
To get volume control, you can multiply your PWM value by a number between 0 (lowest volume) and 0xff (highest volume), then output the high byte of the 16-bit product.
You could read a potentiomet ... |
Topic: 18FxxKxx |
yerpa
Replies: 4
Views: 7814
|
Forum: General CCS C Discussion Posted: Mon Nov 11, 2013 1:33 pm Subject: 18FxxKxx |
From 18F46K22 data sheet: Full 5.5V Operation – PIC18FXXK22 devices. I've used the 18F46K22 at 5 volts, it works very well. |
Topic: PIC MODBUS |
yerpa
Replies: 23
Views: 65514
|
Forum: General CCS C Discussion Posted: Wed May 22, 2013 2:35 pm Subject: PIC MODBUS |
I've had good luck with MDBUS by Calta Computer Systems.
I use B&B Model 485USB9F-2W converter that plugs into Windows USB port and provides two-wire RS-485 connections. |
Topic: ADC result jumps between two numbers after averaging |
yerpa
Replies: 19
Views: 22567
|
Forum: General CCS C Discussion Posted: Tue Apr 02, 2013 11:58 am Subject: ADC result jumps between two numbers after averaging |
You will not be able to accurately select 1000 unique values with a single-turn potentiometer. Even a small fraction of one degree of rotation will change your values by several counts. In addition, ... |
Topic: [SOLVED] 4.140 doing weird stuff (dsPIC) |
yerpa
Replies: 8
Views: 13561
|
Forum: General CCS C Discussion Posted: Tue Jan 08, 2013 2:34 pm Subject: [SOLVED] 4.140 doing weird stuff (dsPIC) |
Could be stack usage varies with compiler version, or the compiler command line switches might be different between the two versions. Possibly an array pointer overruns its allocated memory area and ... |
Topic: ADC Problem in 33FJ12GP202 |
yerpa
Replies: 13
Views: 15536
|
Forum: General CCS C Discussion Posted: Mon Jan 16, 2012 2:55 pm Subject: ADC Problem in 33FJ12GP202 |
The syntax is very similar between PCD and PCH compilers. I would download the latest PCD reference manual from CCS, and look at the ADC examples. Start with Functional Overview - ADC. There are li ... |
Topic: pwm wave |
yerpa
Replies: 1
Views: 3296
|
Forum: General CCS C Discussion Posted: Mon Nov 07, 2011 3:55 pm Subject: pwm wave |
Check this link:
http://www.yerpa58.com/yerpa58-1.htm |
Topic: pic18f4520 problem |
yerpa
Replies: 3
Views: 5006
|
Forum: General CCS C Discussion Posted: Thu May 19, 2011 2:34 pm Subject: pic18f4520 problem |
I don't know what a "smart prox5" programmer is, but it sounds like it might be wrecking your chips. I have programmed the 18F parts many hundreds of times (using Microchip's PICSTART Plus ... |
Topic: board fab for our little PIC projects ? |
yerpa
Replies: 21
Views: 45091
|
Forum: General CCS C Discussion Posted: Fri Jan 07, 2011 12:57 pm Subject: board fab for our little PIC projects ? |
I have had good luck with batchpcb.com. I found them through Sparkfun. They are great for prototypes because there are no setup or tooling charges. The boards are very nice quality. I have been us ... |
Topic: Modbus implementation |
yerpa
Replies: 86
Views: 111100
|
Forum: General CCS C Discussion Posted: Mon Jun 28, 2010 10:25 am Subject: Modbus implementation |
You could try swapping your two serial data lines (data+ and data-). This should perform an inversion just like your inverter chip, without requiring the inverter chip. |
Topic: Is there a Reset instruction? |
yerpa
Replies: 3
Views: 4384
|
Forum: General CCS C Discussion Posted: Tue Jun 15, 2010 9:17 pm Subject: Is there a Reset instruction? |
I had to download a new acrobat reader, then quickly found the "reset_cpu()" instruction in the ccs manual. It works like a charm. Thanks PCM programmer! |
Topic: Is there a Reset instruction? |
yerpa
Replies: 3
Views: 4384
|
Forum: General CCS C Discussion Posted: Tue Jun 15, 2010 8:39 pm Subject: Is there a Reset instruction? |
Thanks for the PDFs. I'll check 'em out. |
Topic: Is there a Reset instruction? |
yerpa
Replies: 3
Views: 4384
|
Forum: General CCS C Discussion Posted: Tue Jun 15, 2010 8:22 pm Subject: Is there a Reset instruction? |
I'm using PCH 3.249 with the PIC 18F4620 and I would like to be able to use an instruction that would cause a reset just like hardware /MCLR reset. Is there such a thing?
Thanks in advance, I've l ... |
Topic: IR Remote |
yerpa
Replies: 3
Views: 4944
|
Forum: General CCS C Discussion Posted: Wed Dec 23, 2009 11:45 am Subject: IR Remote |
Agree with FvM. You would be best to use a modulator/demodulator IR transceiver instead of generating the modulation frequency with the PIC. The data bit times are long enough that you can toggle a ... |
Topic: Drive a 2-digit segment with PIC18F4520 to display values |
yerpa
Replies: 3
Views: 4727
|
Forum: General CCS C Discussion Posted: Wed Dec 23, 2009 11:40 am Subject: Drive a 2-digit segment with PIC18F4520 to display values |
If you are using the CCS compiler, you came to the right place. If you are using a different compiler, this forum will not be helpful. There are a lot of examples of programs for 7-segment displays, ... |
|