Author |
Message |
Topic: SPI issues with 18F2420 and AS5048A rotary encoder |
victor_constantin
Replies: 7
Views: 18020
|
Forum: General CCS C Discussion Posted: Mon Jul 30, 2012 4:50 am Subject: SPI issues with 18F2420 and AS5048A rotary encoder |
Again, thanks for the response. I will try this tomorrow and get back to you. |
Topic: SPI issues with 18F2420 and AS5048A rotary encoder |
victor_constantin
Replies: 7
Views: 18020
|
Forum: General CCS C Discussion Posted: Mon Jul 30, 2012 3:53 am Subject: SPI issues with 18F2420 and AS5048A rotary encoder |
Thank you for the response, however, no luck yet. I know output does not seem linked to the results, it's not making any sense for me either.
Ok, so my code is currently(i changed it as per your ... |
Topic: SPI issues with 18F2420 and AS5048A rotary encoder |
victor_constantin
Replies: 7
Views: 18020
|
Forum: General CCS C Discussion Posted: Mon Jul 30, 2012 2:41 am Subject: SPI issues with 18F2420 and AS5048A rotary encoder |
Changing to #use delay(clock=2000000) from #use delay(clock=8000000) outputs:
3864 3936 -26490 6368 -2048 3846 3864 3870 -26490
798 -464 3846 3864 3942 384 ... |
Topic: SPI issues with 18F2420 and AS5048A rotary encoder |
victor_constantin
Replies: 7
Views: 18020
|
Forum: General CCS C Discussion Posted: Mon Jul 30, 2012 2:29 am Subject: SPI issues with 18F2420 and AS5048A rotary encoder |
Thanks for the answer. I am powering it at 5V so yes, the capacitor is in place. Never really got the bitwise operator part, so from what I'm getting the code you sent really just does an AND between ... |
Topic: SPI issues with 18F2420 and AS5048A rotary encoder |
victor_constantin
Replies: 7
Views: 18020
|
Forum: General CCS C Discussion Posted: Mon Jul 30, 2012 1:25 am Subject: SPI issues with 18F2420 and AS5048A rotary encoder |
Hello all,
Setup is: PIC18F2420@8Mhz, AS5048A SPI-enabled transducer, CCS PIC 4.114.
I'm using 4-wire single slave SPI, all signals are OK, they modify with the magnetic field, checked with osc ... |
Topic: Issue with internal oscillator on PIC12F675 |
victor_constantin
Replies: 10
Views: 18802
|
Forum: General CCS C Discussion Posted: Thu Dec 16, 2010 3:18 am Subject: Issue with internal oscillator on PIC12F675 |
Hello, sorry for the late response. I managed to fix it after all, the problem was indeed with the NOMCLR. Thanks alot guys. |
Topic: Issue with internal oscillator on PIC12F675 |
victor_constantin
Replies: 10
Views: 18802
|
Forum: General CCS C Discussion Posted: Wed Dec 15, 2010 5:27 pm Subject: Issue with internal oscillator on PIC12F675 |
Hello,
1. Version is 4.104
2. No resistor in series with the MCRL pin. What would be the correct value? What would be the correct way to wire it?
3. Vdd voltage is 5.5V
4. Yes, there is a ... |
Topic: Issue with internal oscillator on PIC12F675 |
victor_constantin
Replies: 10
Views: 18802
|
Forum: General CCS C Discussion Posted: Wed Dec 15, 2010 5:09 pm Subject: Issue with internal oscillator on PIC12F675 |
Sorry for the late reply and thanks for the answers. However, i wasn't able to solve the issue, the program still runs in the same way. Any other ideas?
From what i've gathered so far, the problem ... |
Topic: Issue with internal oscillator on PIC12F675 |
victor_constantin
Replies: 10
Views: 18802
|
Forum: General CCS C Discussion Posted: Wed Dec 15, 2010 5:38 am Subject: Issue with internal oscillator on PIC12F675 |
Yes, you are right, it's a 4Mhz oscillator. However, i now changed that setting to #use delay(clock=4M) but to no avail. |
Topic: Issue with internal oscillator on PIC12F675 |
victor_constantin
Replies: 10
Views: 18802
|
Forum: General CCS C Discussion Posted: Wed Dec 15, 2010 3:41 am Subject: Issue with internal oscillator on PIC12F675 |
Hello guys,
I'm trying to create a blink led program for a 12f675 using CCS. Problem is i can only get the led's to register to the first state in the program, thus, no blinking, just on/off depend ... |
|