Search found 4 matches
- Mon Jun 06, 2011 9:40 pm
- Forum: General Remark and Questions
- Topic: SPI on dsPic30F2010
- Replies: 2
- Views: 13391
Re: SPI on dsPic30F2010
I know the origins of the problem!! At the boot of the unit, after 5-6 seconds, the bit SPI1STAT.SPIROV is set because of the overflow in the SPI1BUF that makes the dsPic crash. To avoid the crash, I just have to put the SPI1STATbits.SPIROV=0 at the beginning of the SPI Interrupt function. But durin...
- Mon May 30, 2011 10:46 am
- Forum: General Remark and Questions
- Topic: Monitoring RCON register
- Replies: 1
- Views: 10973
Monitoring RCON register
Hello everybody! I would like to monitor the RCON register, so I put a C function call block with only one Output (output size 1 et output type uint16) and the function name is called 'reset_function'. I did this very simple C program : #include <p30f2010.h> extern uint16_T reset_function(void) { re...
- Fri May 27, 2011 7:24 pm
- Forum: General Remark and Questions
- Topic: SPI on dsPic30F2010
- Replies: 2
- Views: 13391
Re: SPI on dsPic30F2010
I think I iderstood what was my real problem. It's that my 30F2010 doesn't boot if I change the mode to 'read once - interrupt-enable after block execution'. Sometimes it boots and it works well but mostly it doesn't boot....any ideas for this bug? Does it happen to anyone? thanks to reply!!
- Fri May 27, 2011 5:13 pm
- Forum: General Remark and Questions
- Topic: SPI on dsPic30F2010
- Replies: 2
- Views: 13391
SPI on dsPic30F2010
Hi there! I've got some problems on a SPI communication between a 33FJ128GP802 (master) and a µ-gyro ADIS16100 (slave) and a 30F2010 (slave) . Here is the configuration parameters : Master 33FJ128GP802 : SPI config block Mode:Master Clock 625000Hz Starting : Enable SDO Enable Data length 16bits Samp...