Ben
Forgot to add, if IOC B is enabled along with the timer interrupts, the PIC reboots on encoder CW or CCW rotation, but with the other encoder added as IOC A it works OK on that encoder but now when the IOC B encoder is operated nothing is read, the PIC freezes & doesn't reboot.
Paul
Search found 7 matches
- Thu Jan 20, 2022 10:18 am
- Forum: Bug Reports
- Topic: PIC32MX170F256B & 270F256B IOC port B problem
- Replies: 5
- Views: 3878
- Thu Jan 20, 2022 4:51 am
- Forum: Bug Reports
- Topic: PIC32MX170F256B & 270F256B IOC port B problem
- Replies: 5
- Views: 3878
Re: PIC32MX170F256B & 270F256B IOC port B problem
Ben FYI to give more context, this extract is from an encoder & touch screen test program with (2) IOC interrupts where only IOCB doesn't work properly plus (2) timer interrupts which both work, yet all (4) have a warning that the macros may not get called? //Handler code for [IOC1] #ifndef MX_ISR_C...
- Tue Jan 18, 2022 10:26 am
- Forum: Bug Reports
- Topic: PIC32MX170F256B & 270F256B IOC port B problem
- Replies: 5
- Views: 3878
Re: PIC32MX170F256B & 270F256B IOC port B problem
Ben Thanks. I tried this and the interrupts are now definitely recognised as demonstrated by the PIC rebooting every time the encoder is rotated left or right. I had a squiz at the c-code and saw CNENB = 0x60 | (0x0,<<8 which is now correct for interrupt on B5 or B6. But what is "35" doing in //Hand...
- Fri Jan 14, 2022 7:04 am
- Forum: Bug Reports
- Topic: PIC32MX170F256B & 270F256B IOC port B problem
- Replies: 5
- Views: 3878
PIC32MX170F256B & 270F256B IOC port B problem
Hello. I have a PIC32MX170F256B FC8 project with 2 rotary encoders each using IOC. An IOC portA to read one and IOC portB to read the other but the portB interrupt don't work, tried all avail 2 pin combinations for the encoder on portB. Verified encoder is working. Also tested FC8 with ONLY 1 interr...
- Mon Jul 13, 2020 3:29 am
- Forum: Bug Reports
- Topic: PIC24FJ256GA702 I2C channel not working query
- Replies: 1
- Views: 1245
PIC24FJ256GA702 I2C channel not working query
Hello Another problem with this chip is selecting I2C, channel 2 results in a compile fail. I have been using EEPROM, MAX44009 sensor and BMP280 OK on channel 1 (or software) BUT when I went to channel 2 it doesn't compile & gives errors 'I2CCON' (undeclared first use in this function) etc Can you a...
- Fri Jul 03, 2020 11:44 am
- Forum: Bug Reports
- Topic: PIC24FJ256GA702 component not working query
- Replies: 2
- Views: 1579
Re: PIC24FJ256GA702 component not working query
Ben Thanks very much, that makes sense and it worked. It's better than modifying the component definition file. FYI I noticed this chip's data sheet used ANSELA/B for the analog port config bits like PIC18's BUT a check in other PIC24 datasheets shows ANSA/B etc is used. I did replace ANSEL with ANS...
- Thu Jul 02, 2020 1:15 pm
- Forum: Bug Reports
- Topic: PIC24FJ256GA702 component not working query
- Replies: 2
- Views: 1579
PIC24FJ256GA702 component not working query
Hello, I need help with this component. My previous projects have been 8 bit PICs so before starting work on a 16 bit program I selected the above and went to do a simple test to set the xtal osc and turn on 1 led. Surprisingly it failed to compile to hex in FC8 (tried FC7 but it doesn't have this c...