PIC16FV32K303
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: PIC16FV32K303
Hi Dirk,
Yes it looks that way looking at the datasheet. You can do rising or falling detection in software by monitoring the pin states.
Yes it looks that way looking at the datasheet. You can do rising or falling detection in software by monitoring the pin states.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Valued Contributor
- Posts: 654
- Joined: Fri Aug 19, 2016 2:09 pm
- Location: switzerland
- Has thanked: 182 times
- Been thanked: 179 times
Re: PIC16FV32K303
Hi Dirk, Hi Ben
I have a problem in my hardware with a interrupt and a Pic32MZ2048ecg and Pic32MZ2048efg
as similar as here is the question.
I had a look in the datasheet from the PIC24FV32
and it look as the PIC has Edge Detect Polarity.
Also my PIC's have this bit.
But how can we use that with FC8 ? Maybe just change a bit in a register?
regards
Stefan
I have a problem in my hardware with a interrupt and a Pic32MZ2048ecg and Pic32MZ2048efg
as similar as here is the question.
I had a look in the datasheet from the PIC24FV32
and it look as the PIC has Edge Detect Polarity.
Also my PIC's have this bit.
But how can we use that with FC8 ? Maybe just change a bit in a register?
regards
Stefan
http://ww1.microchip.com/downloads/en/D ... 09995e.pdfbit 2 INT2EP: External Interrupt 2 Edge Detect Polarity Select bit
1 = Interrupt is on the negative edge
0 = Interrupt is on the positive edge
bit 1 INT1EP: External Interrupt 1 Edge Detect Polarity Select bit
1 = Interrupt is on the negative edge
0 = Interrupt is on the positive edge
bit 0 INT0EP: External Interrupt 0 Edge Detect Polarity Select bit
1 = Interrupt is on the negative edge
0 = Interrupt is on the positive edge
-
- Valued Contributor
- Posts: 654
- Joined: Fri Aug 19, 2016 2:09 pm
- Location: switzerland
- Has thanked: 182 times
- Been thanked: 179 times
Re: PIC16FV32K303
Hi Dirk
(Ja, wir sprechen deutsch in der Schweiz)
Your Pic looks good for the INT, only my Pic is a litle different.
For you it's clear how to use INT with B7,B14,B12 but the PIC32MZ2048EFG100
is not clear how to use, because four out of five external interrupts are remappable.
The Int0, I found is on Pin71 on D0
Do you have an idea how to use the anothers?
I need one interrupt on C3....
regards
Stefan
(Ja, wir sprechen deutsch in der Schweiz)
Your Pic looks good for the INT, only my Pic is a litle different.
For you it's clear how to use INT with B7,B14,B12 but the PIC32MZ2048EFG100
is not clear how to use, because four out of five external interrupts are remappable.
The Int0, I found is on Pin71 on D0
Do you have an idea how to use the anothers?
I need one interrupt on C3....
regards
Stefan
-
- Valued Contributor
- Posts: 654
- Joined: Fri Aug 19, 2016 2:09 pm
- Location: switzerland
- Has thanked: 182 times
- Been thanked: 179 times
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: PIC32MZ2048EFG100 Remap INT
Hello Stefan,
If you go into the interrupt properties then it should allow you to assign the remap pin.
Do you need the interrupt to simulate? Currently the simulation pin is fixed but the downloaded pin can be remapped.
If you go into the interrupt properties then it should allow you to assign the remap pin.
Do you need the interrupt to simulate? Currently the simulation pin is fixed but the downloaded pin can be remapped.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Valued Contributor
- Posts: 654
- Joined: Fri Aug 19, 2016 2:09 pm
- Location: switzerland
- Has thanked: 182 times
- Been thanked: 179 times
Re: PIC16FV32K303
Hi Ben
Perfect.
A little my mistake. I only looked at the INT0 and this is fixed and not remappel
In the Int2 is a nice menue for choosing the pins. I like the FC8...
Perfect.
A little my mistake. I only looked at the INT0 and this is fixed and not remappel
In the Int2 is a nice menue for choosing the pins. I like the FC8...
-
- Valued Contributor
- Posts: 654
- Joined: Fri Aug 19, 2016 2:09 pm
- Location: switzerland
- Has thanked: 182 times
- Been thanked: 179 times
Re: PIC16FV32K303
Hi Ben
I have changed my program to the INT2 on PIN C3.
The result is not ok. If I check the signal on PIN3 there is always a low signal.
When I change it back to Interrupt on port C and choose C3 then signal on PIN C3 is toggeling.
As if the configuration from INT2 on Pin C3 set the input always to low....
This is on the PIC32MZ2048ECG100
Did I do something wrong?
I have changed my program to the INT2 on PIN C3.
The result is not ok. If I check the signal on PIN3 there is always a low signal.
When I change it back to Interrupt on port C and choose C3 then signal on PIN C3 is toggeling.
As if the configuration from INT2 on Pin C3 set the input always to low....
This is on the PIC32MZ2048ECG100
Did I do something wrong?
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: PIC16FV32K303
Hi Stefan,
Please can you post your program so we can have a look for you.
Please can you post your program so we can have a look for you.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Valued Contributor
- Posts: 654
- Joined: Fri Aug 19, 2016 2:09 pm
- Location: switzerland
- Has thanked: 182 times
- Been thanked: 179 times
Re: PIC16FV32K303
Hi Ben
So I changed my program a little. If I select the Portc and PIN C3, my program is running.
If I select the INT2 on PIN C3 it's not working.
For both Interruppt, I checked the signal on Pin C3 (input) with the osciloscope and there is always a signal toggeling to flash thr INT .....
To select the INT on one place To show the flashing INT I turn on and off a green LED
So I changed my program a little. If I select the Portc and PIN C3, my program is running.
If I select the INT2 on PIN C3 it's not working.
For both Interruppt, I checked the signal on Pin C3 (input) with the osciloscope and there is always a signal toggeling to flash thr INT .....
To select the INT on one place To show the flashing INT I turn on and off a green LED
-
- Valued Contributor
- Posts: 654
- Joined: Fri Aug 19, 2016 2:09 pm
- Location: switzerland
- Has thanked: 182 times
- Been thanked: 179 times
Re: PIC16FV32K303
Hi Ben
How is the litle Interrupt problem with PIC32MZ2048EFG100 ?
For my project " Low-Noise, 6-Channel, 24-Bit Analog-to-Digital Converter for Biopotential Measurements "
(reading ADS1299 chip) it's a big help if the Interrupt is working fine.
How is the litle Interrupt problem with PIC32MZ2048EFG100 ?
For my project " Low-Noise, 6-Channel, 24-Bit Analog-to-Digital Converter for Biopotential Measurements "
(reading ADS1299 chip) it's a big help if the Interrupt is working fine.