PIC24FV32KA304 Seemed to be 3 founded bugs
Posted: Mon Oct 03, 2016 7:43 pm
Hello Benj,
my topic was already written to
viewtopic.php?f=54&t=18079
but now I found now a third point, who is not running. Below are all 3 points described again:
CPU = PIC24FV32KA304
1.) Sometimes a additional signal on the port!
External clock signals are counted with timer4. The interrupt of timer4 toggles a bit and write it to a pin
on the port. That works! A additional write to a other pin on the same port in a loop makes confusion. The
timer4 gets from writing to the port sometimes a additional signal??? Please have a look to the attachments to
the topic address. In the program I use A10 for the output. If I replace the output-box A10 and place a
c-Icon with "PORTA |= (1 << 10);" or "PORTA &= ~(1 << 10);" all is running well ?!?!?!?!?
2.) I2C b8/b9
a.) Channel 1 hardware 100KHz --> Initialize, Send byte transaction = no signals coming out !!!
b.) Channel 1 software 100KHz --> Initialize, Send byte transaction = no signals coming out !!!
c.) Channel 1 software 100KHz --> Initialize with my own software, Send byte transaction = Data signals are
coming, no clock !!!
d.) My own software 100KHz --> Initialize with by my own software, Send with own software = Data and clock
signals are coming.
3.) timer4 and adc (File in the attachment)
timer4 is clocked internal and the interrupt toggles an output. Thats running.
Placing an adc-trimmer and set to do a average 5 times with 50us as int stops the
toggle output and it look like an input in this moment. After setting the adc to
"read as int" the output toggles again.
Can you have a further look to them?
Best regards
Jorg
my topic was already written to
viewtopic.php?f=54&t=18079
but now I found now a third point, who is not running. Below are all 3 points described again:
CPU = PIC24FV32KA304
1.) Sometimes a additional signal on the port!
External clock signals are counted with timer4. The interrupt of timer4 toggles a bit and write it to a pin
on the port. That works! A additional write to a other pin on the same port in a loop makes confusion. The
timer4 gets from writing to the port sometimes a additional signal??? Please have a look to the attachments to
the topic address. In the program I use A10 for the output. If I replace the output-box A10 and place a
c-Icon with "PORTA |= (1 << 10);" or "PORTA &= ~(1 << 10);" all is running well ?!?!?!?!?
2.) I2C b8/b9
a.) Channel 1 hardware 100KHz --> Initialize, Send byte transaction = no signals coming out !!!
b.) Channel 1 software 100KHz --> Initialize, Send byte transaction = no signals coming out !!!
c.) Channel 1 software 100KHz --> Initialize with my own software, Send byte transaction = Data signals are
coming, no clock !!!
d.) My own software 100KHz --> Initialize with by my own software, Send with own software = Data and clock
signals are coming.
3.) timer4 and adc (File in the attachment)
timer4 is clocked internal and the interrupt toggles an output. Thats running.
Placing an adc-trimmer and set to do a average 5 times with 50us as int stops the
toggle output and it look like an input in this moment. After setting the adc to
"read as int" the output toggles again.
Can you have a further look to them?
Best regards
Jorg