Author |
Message |
Topic: Input() On dsPIC33EP256GP502 |
Geps
Replies: 12
Views: 16981
|
Forum: General CCS C Discussion Posted: Tue Mar 17, 2015 4:10 pm Subject: Input() On dsPIC33EP256GP502 |
Thanks Ttelmah,
Turns out it was the PIC that was faulty. Recreated the circuit with new components on another PCB and it worked first time.
Thanks for the suggestions,
Cheers, |
Topic: Input() On dsPIC33EP256GP502 |
Geps
Replies: 12
Views: 16981
|
Forum: General CCS C Discussion Posted: Tue Mar 17, 2015 12:17 pm Subject: Input() On dsPIC33EP256GP502 |
I've had a look through and I can't see any registers getting set that would cause what I'm seeing...on the assumption that they are starting up with the 0x0000 value it states in the datasheet.
I' ... |
Topic: Input() On dsPIC33EP256GP502 |
Geps
Replies: 12
Views: 16981
|
Forum: General CCS C Discussion Posted: Tue Mar 17, 2015 6:57 am Subject: Input() On dsPIC33EP256GP502 |
Don't fiddle about, use the SPI library:
You seem to be trying to clock 16.5 bits (toggling 0 to 32) - the chip returns 16bits, with the select line permanently low. You can do this (2 wire interfa ... |
Topic: Input() On dsPIC33EP256GP502 |
Geps
Replies: 12
Views: 16981
|
Forum: General CCS C Discussion Posted: Tue Mar 17, 2015 12:31 am Subject: Input() On dsPIC33EP256GP502 |
Current test program:
#fuses NOWDT,NOPROTECT, HS, ICSP3
#use delay(clock=70M, xtal=20M)
#define SPI_SS PIN_B7
#PIN_SELECT U1TX=PIN_A4
#PIN_SELECT U1RX=PIN_B5
#use rs232(ST ... |
Topic: Input() On dsPIC33EP256GP502 |
Geps
Replies: 12
Views: 16981
|
Forum: General CCS C Discussion Posted: Tue Mar 17, 2015 12:28 am Subject: Input() On dsPIC33EP256GP502 |
I don't use that PIC but as a general rule, you should disable any/all peripherals associated with the I/O pin you're using. IE if is has an ADC input, disable that, if it has comparator use, disable ... |
Topic: Input() On dsPIC33EP256GP502 |
Geps
Replies: 12
Views: 16981
|
Forum: General CCS C Discussion Posted: Mon Mar 16, 2015 5:23 pm Subject: Input() On dsPIC33EP256GP502 |
Hi,
I'm trying to read an Avago encoder via SPI on a dsPIC33EP256GP502.
I find when I disconnect the data line from the pic, I can see the encoder responding, but as soon as I reattach the PIC, ... |
Topic: CCS Bootloader Question |
Geps
Replies: 1
Views: 4725
|
Forum: General CCS C Discussion Posted: Wed Jan 07, 2015 9:09 am Subject: CCS Bootloader Question |
Hi,
I'm trying to create a bootloader using the CCS example as a template but the following lines don't make sense to me....can anyone shed some light please?
Snippets:
read_program_memory ... |
Topic: SOLVED:dsPIC33EP512GM604 With Internal FRC |
Geps
Replies: 7
Views: 9997
|
Forum: General CCS C Discussion Posted: Fri Jul 25, 2014 3:05 pm Subject: SOLVED:dsPIC33EP512GM604 With Internal FRC |
or a simple hardware change that my inexperience with dsPICs has caused me to miss...?
Turns out it was the good old MCLR pullup!
All working now thanks to CCS Support. |
Topic: SOLVED:dsPIC33EP512GM604 With Internal FRC |
Geps
Replies: 7
Views: 9997
|
Forum: General CCS C Discussion Posted: Fri Jul 25, 2014 3:38 am Subject: SOLVED:dsPIC33EP512GM604 With Internal FRC |
Through a 56R resistor down to Vcc. If anything the resistor is actually too large a value... I'm using (was, I've switch to using a scope now as mentioned below) emerald green:
Datasheet: http://doc ... |
Topic: SOLVED:dsPIC33EP512GM604 With Internal FRC |
Geps
Replies: 7
Views: 9997
|
Forum: General CCS C Discussion Posted: Wed Jul 23, 2014 10:28 am Subject: SOLVED:dsPIC33EP512GM604 With Internal FRC |
Sorry guys! I meant to say that the LED doesn't stay on hence I took out the output_off/toggle line of code.
Only time it lights is during programming when output_high(PIN_C6) is included - if you ... |
Topic: SOLVED:dsPIC33EP512GM604 With Internal FRC |
Geps
Replies: 7
Views: 9997
|
Forum: General CCS C Discussion Posted: Wed Jul 23, 2014 9:43 am Subject: SOLVED:dsPIC33EP512GM604 With Internal FRC |
Hi,
I'm starting my first 'dsPIC33/ICD3/CCS 5.025/MPLabX' project having spent the past couple years on the PIC18/Pickit2/CCS 4.XXX combo and seem to have fallen at the first hurdle...
I'm tryin ... |
Topic: Timers On 18F PICs |
Geps
Replies: 5
Views: 7980
|
Forum: General CCS C Discussion Posted: Thu Mar 14, 2013 11:56 am Subject: Timers On 18F PICs |
Hi,
I have a subroutine that is used for decoding an asynchronous signal that uses Timer 1 to count between level changes as detected by the RB interrupt.
Timer 0 is used to time out the decodin ... |
Topic: Error In I2C Communications Between PICs |
Geps
Replies: 3
Views: 6011
|
Forum: General CCS C Discussion Posted: Sun Mar 10, 2013 12:40 pm Subject: Error In I2C Communications Between PICs |
Since posting I've been trying to enable the hardware UART buffer and found an old post by PCM Programmer in this thread that suggests the support for this chip is flawed:
http://www.ccsinfo.com/fo ... |
Topic: Error In I2C Communications Between PICs |
Geps
Replies: 3
Views: 6011
|
Forum: General CCS C Discussion Posted: Sun Mar 10, 2013 10:02 am Subject: Error In I2C Communications Between PICs |
Hi,
I'm setting up an I2C communication method between a single 18F46K22 and a single 12F1840. I have the following code compiled under 4.125 running on the 12F1840:
#include <12F1840.h>
... |
Topic: FIXED: Reason For Switching To SW UART/PIC18F26k22 RDA |
Geps
Replies: 8
Views: 15653
|
Forum: General CCS C Discussion Posted: Thu Jan 31, 2013 1:23 am Subject: FIXED: Reason For Switching To SW UART/PIC18F26k22 RDA |
Thanks Ttelmah,
Fixed by upgrading to 4.125. |
|