I'm just starting out with pic programming, and am having a problem with tutorial 2.2 from Nigel's series at WinPicProg.
Everything has worked correctly up to this point, with only 1 hardware issue, that has been dealt with.
A little background: As I don't have a ready source of veroboard, I am using a solderless breadboard for constructing the needed circuits. My programmer is a kitsrus K150 clone, sold as a pic+pro. For assembly of the code, I am using MPLAB.
I have been using p16F628A chips. Since the __config word supplied for the p16F628 <0x3D18> returns an error, I have set (using MPLAB) the __config word slightly different, to <0x3F10>.
MPLAB is constantly returning with "Message[302] E:\1STPROGWINPIC\TUTORIAL2\TUTORIAL2\TUT2_2.ASM 35 : Register in operand not in bank 0. Ensure that bank bits are correct."
With that said,on to the problem I'm having. In tutorial 2.2, the switches are supposed to turn LEDs on and off. This is not happening. First button push does turn the appropriate LED on, however subsequent button presses do nothing. I can turn any of the LEDs on, but unless I press another button to change which LED is lit, I cannot turn any of them off, as is supposed to be happening.
I have been told that all code supplied in the tutorials has been time tested to work, I am seriously wondering what could be causing my issues.
I have tried going on to 2.3, but am experiencing issues with that one as well. The patterns that are supposed to be going to the LED board from PORTB are not happening correctly. All I'm getting is the first 4 LEDs <RB0 - RB3> attempting to follow the patterns, with nothing showing up on <RB4 - RB7>
Voltage being supplied to the circuits is 4.95V± .02V, through an LM7805 regulator. Yes I have the capacitors on the 7805, and the decoupling cap on the power pins of the pic.
There is something else I'd like to do, as well as trying to find out the causes of these issues, is instead of sourcing to the LEDs, I'd like to sink from them. In other words, instead of active high, I'd like to make them active low. Or will that be covered in a later tutorial?
Sorry about the "wall of text", but I thought I would give you as much info as I could think of that might be relevant to my problem.
Thank you in advance for any help!
Everything has worked correctly up to this point, with only 1 hardware issue, that has been dealt with.
A little background: As I don't have a ready source of veroboard, I am using a solderless breadboard for constructing the needed circuits. My programmer is a kitsrus K150 clone, sold as a pic+pro. For assembly of the code, I am using MPLAB.
I have been using p16F628A chips. Since the __config word supplied for the p16F628 <0x3D18> returns an error, I have set (using MPLAB) the __config word slightly different, to <0x3F10>.
MPLAB is constantly returning with "Message[302] E:\1STPROGWINPIC\TUTORIAL2\TUTORIAL2\TUT2_2.ASM 35 : Register in operand not in bank 0. Ensure that bank bits are correct."
With that said,on to the problem I'm having. In tutorial 2.2, the switches are supposed to turn LEDs on and off. This is not happening. First button push does turn the appropriate LED on, however subsequent button presses do nothing. I can turn any of the LEDs on, but unless I press another button to change which LED is lit, I cannot turn any of them off, as is supposed to be happening.
I have been told that all code supplied in the tutorials has been time tested to work, I am seriously wondering what could be causing my issues.
I have tried going on to 2.3, but am experiencing issues with that one as well. The patterns that are supposed to be going to the LED board from PORTB are not happening correctly. All I'm getting is the first 4 LEDs <RB0 - RB3> attempting to follow the patterns, with nothing showing up on <RB4 - RB7>
Voltage being supplied to the circuits is 4.95V± .02V, through an LM7805 regulator. Yes I have the capacitors on the 7805, and the decoupling cap on the power pins of the pic.
There is something else I'd like to do, as well as trying to find out the causes of these issues, is instead of sourcing to the LEDs, I'd like to sink from them. In other words, instead of active high, I'd like to make them active low. Or will that be covered in a later tutorial?
Sorry about the "wall of text", but I thought I would give you as much info as I could think of that might be relevant to my problem.
Thank you in advance for any help!