I’m making use of this Microchip; PIC16F1939T-I/PT
I have made a simple Flowchart to test If the ICSP is working. The Flowchart is working fine but when I upload the .hex file with PicKit2 I get this error: (see below)
I also don’t know if the configuration bits I have set are the good settings for this chip. I’m making use of the Internal Oscillator. Could someone please check this bits?
Thanks for your answers.
Frank
Microchip PIC16F1939T-I/PT
Moderator: Benj
-
- Posts: 192
- Joined: Mon Mar 04, 2013 8:07 pm
- Has thanked: 29 times
- Been thanked: 15 times
- Contact:
Re: Microchip PIC16F1939T-I/PT
Suddenly the above error from PicKit2 goes away
I have a nest question and I hope that someone can help me with this.
I’m trying to read 8 switches on PORT A and then send some output to LEDs on PORT C.
I have made a flowchart what does this on RA0 (switch) and the output goes to RC0 (LED). I think that this can be done simpler for the whole PORT but I don’t know how. I have read this forum but there is no similar question that I have.
Attached is the flowchart what I have made for one switch and one LED.
Thanks for your answers.
Frank
I have a nest question and I hope that someone can help me with this.
I’m trying to read 8 switches on PORT A and then send some output to LEDs on PORT C.
I have made a flowchart what does this on RA0 (switch) and the output goes to RC0 (LED). I think that this can be done simpler for the whole PORT but I don’t know how. I have read this forum but there is no similar question that I have.
Attached is the flowchart what I have made for one switch and one LED.
Thanks for your answers.
Frank
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Microchip PIC16F1939T-I/PT
You can read the whole port at once:
Once read the port what do you want the output to do, match the input exactly?
If so just used the same variable you used on the input for the output and again select whole port and use masking if required.
You can also select Use Masking and only tick the pins you want to use.Once read the port what do you want the output to do, match the input exactly?
If so just used the same variable you used on the input for the output and again select whole port and use masking if required.
Martin