Author |
Message |
Topic: Pins A3 and A4 wont turn on, only toggle |
scaven92
Replies: 21
Views: 22645
|
Forum: General CCS C Discussion Posted: Mon Oct 12, 2009 4:25 pm Subject: Pins A3 and A4 wont turn on, only toggle |
Great! I'll have to see if my 30 days of compiler updates is still valid or order an update package.
Thanks! |
Topic: Pins A3 and A4 wont turn on, only toggle |
scaven92
Replies: 21
Views: 22645
|
Forum: General CCS C Discussion Posted: Mon Oct 12, 2009 3:54 pm Subject: Pins A3 and A4 wont turn on, only toggle |
Wow, that has to be it. I will correct my code to handle this problem. I appreciate your help, you have saved me alot of time and made me aware of this Read-Modify-Write problem.
Should I send CC ... |
Topic: Pins A3 and A4 wont turn on, only toggle |
scaven92
Replies: 21
Views: 22645
|
Forum: General CCS C Discussion Posted: Mon Oct 12, 2009 1:55 pm Subject: Pins A3 and A4 wont turn on, only toggle |
In my diagram the source of the fet is grounded and the drain connects to the cathode of the led. |
Topic: Pins A3 and A4 wont turn on, only toggle |
scaven92
Replies: 21
Views: 22645
|
Forum: General CCS C Discussion Posted: Mon Oct 12, 2009 1:52 pm Subject: Pins A3 and A4 wont turn on, only toggle |
I have changed my enable_led() function to accomodate this problem and everything is working smoothly.
void enable_led( int value, int time_ms, int number )
{
int i, j = 0;
... |
Topic: Pins A3 and A4 wont turn on, only toggle |
scaven92
Replies: 21
Views: 22645
|
Forum: General CCS C Discussion Posted: Mon Oct 12, 2009 12:48 pm Subject: Pins A3 and A4 wont turn on, only toggle |
It looks like it is the read-modify-write problem you have previously mentioned. I was able to turn all the LED's on.
I have a question though, even if I put a 500ms delay in between successive bi ... |
Topic: Pins A3 and A4 wont turn on, only toggle |
scaven92
Replies: 21
Views: 22645
|
Forum: General CCS C Discussion Posted: Mon Oct 12, 2009 12:27 pm Subject: Pins A3 and A4 wont turn on, only toggle |
Alright I will try that. If it is a read-modify-write problem, wouldn't a 500ms delay between port reads be enouph to allow that pin to settle to the correct value? The only load on that pin is the ... |
Topic: Pins A3 and A4 wont turn on, only toggle |
scaven92
Replies: 21
Views: 22645
|
Forum: General CCS C Discussion Posted: Mon Oct 12, 2009 10:33 am Subject: Pins A3 and A4 wont turn on, only toggle |
I tried the delay and it acts the same, the two leds connected to A3 and A4 blink for a very belief moment while all the other leds come on.
I am lost... |
Topic: Pins A3 and A4 wont turn on, only toggle |
scaven92
Replies: 21
Views: 22645
|
Forum: General CCS C Discussion Posted: Fri Oct 09, 2009 5:58 pm Subject: Pins A3 and A4 wont turn on, only toggle |
I have the following circuit, one for each of the following pins: A0, A1, A2, A3, A4, A5, C1 (7 total LEDs).
I also have pin C2 used for to turn on the 5V supply for all of the LED's.
... |
Topic: Pins A3 and A4 wont turn on, only toggle |
scaven92
Replies: 21
Views: 22645
|
Forum: General CCS C Discussion Posted: Fri Oct 09, 2009 5:30 pm Subject: Pins A3 and A4 wont turn on, only toggle |
I have attached the following LEDs, resistors and transistors to the following pins: A0, A1, A2, A3, A4, A5, C1 (all wired the same).
I have a power enable for the power source to the leds, which i ... |
Topic: Pins A3 and A4 wont turn on, only toggle |
scaven92
Replies: 21
Views: 22645
|
Forum: General CCS C Discussion Posted: Fri Oct 09, 2009 4:19 pm Subject: Pins A3 and A4 wont turn on, only toggle |
Its seems like I have no problem turning them on individually, but when I turn all of the leds on two of them only pulse and won't come on.
I believe that when I turn one of the ports on (either A4 ... |
Topic: Pins A3 and A4 wont turn on, only toggle |
scaven92
Replies: 21
Views: 22645
|
Forum: General CCS C Discussion Posted: Fri Oct 09, 2009 3:47 pm Subject: Pins A3 and A4 wont turn on, only toggle |
I have tried your main for both pins A3 and A4 and they work! Both output_high(PIN_A3) and output_bit(PIN_A3, 1) work.
Let me look more into my function call enable_led() to see where things get m ... |
Topic: Pins A3 and A4 wont turn on, only toggle |
scaven92
Replies: 21
Views: 22645
|
Forum: General CCS C Discussion Posted: Fri Oct 09, 2009 3:34 pm Subject: Pins A3 and A4 wont turn on, only toggle |
Thanks for the quick response.
I reviewed the data sheet and all I find is that RA4 is TTL Input type, CMOS output type, and General Purpose I/O, without saying anything about the Open Drain only. ... |
Topic: Pins A3 and A4 wont turn on, only toggle |
scaven92
Replies: 21
Views: 22645
|
Forum: General CCS C Discussion Posted: Fri Oct 09, 2009 2:58 pm Subject: Pins A3 and A4 wont turn on, only toggle |
Hello,
I am using a PIC16LF722 for a project and I am have difficulty with two pins RA3 and RA4.
When I may the call output_bit(PIN_A3, 1) or output_bit(PIN_A4, 1) they turn on for about 1 ms, ... |
Topic: PIC18F14K22 Sampling Rate SPI to UART |
scaven92
Replies: 2
Views: 3306
|
Forum: General CCS C Discussion Posted: Thu Aug 27, 2009 4:18 pm Subject: PIC18F14K22 Sampling Rate SPI to UART |
Ttelmah,
Thanks for the correction. I won't have much overhead between reads from SPI and writes to UART. I'll start working on it.
Thanks again!
-Chris |
Topic: PIC18F14K22 Sampling Rate SPI to UART |
scaven92
Replies: 2
Views: 3306
|
Forum: General CCS C Discussion Posted: Thu Aug 27, 2009 2:31 pm Subject: PIC18F14K22 Sampling Rate SPI to UART |
Hello,
I have an SPI signal coming to my PIC with at above 8kHz. Will a PIC18F14K22 be able to read this and pass it out the UART in time? This is with a 16MHz external clock with a 4x PLL.
1 ... |
|