Expert configuration and 16F630
Posted: Mon Mar 02, 2009 10:06 am
Need some help please !
I would first like to congratulate you on FlowCode; it's a great programme, can't wait for V4 to be out.
I am relatively new to programming but have managed to successfully build an 'Iambic Morse keyer' circuit (produces perfectly spaced Morse dots and dashes depending which way you move a paddle). The initial successful chip used was a PIC 12F629.
The problems started when I needed to have more I/O pins to accommodate programmed call signs, CQ and the like, that would be initiated from external push buttons, so I re-wrote the programme for the PIC 16F630, but although the programme compiles and runs as intended I am unable to get any response from the two inputs RA1 and RA0, Pins 12 and 13. They are both capable of being inputs according to the spec sheet. My suspicion is it may have something to do with these pins being the inputs for the internal comparator, BUT how do I activate them to be inputs using Expert Configuration?
While I'm on the subject of 'Expert Configuration' is there some information on this aspect of FlowCode that I can down-load or buy? It took me days of trial and error, frustration and a few sleepless nights to get the above almost fully working.
The programme is a loop with two inputs; one for dots and one for dashes. Each input is followed by a decision, which initiates a Macro; one Macro forms the dot followed by a space and the other Macro forms the dash followed by a space.
Both Macros output to pin 7, RC3, and then to a sounder and a switching circuit to the transmitter.
All but two of the other pins are inputs to similar decision and initiation of the macros but in this case they are in groups of dash and dot macros with spaces to give Radio Ham call signs on some inputs and the letters for CQ on another, etc.etc. The two outputs on RA4 and RC5 are Re-sets for a pair of external flip flops that form a memory, so if you speed ahead of the system and call for a dot while the dash is still playing the flip flops remember and stop you losing the dot. The same applies for the dash. Hope this makes some sense!
FlowCode V 3.2.2.40 Professional.
EXPERT CONFIG SETUP
Chip: 16F630
Clock: 4 Meg
Oscillator: External RC no clock
W D Timer: off
Power up timer: off
Master clear: Internal
Brown out Detect: on
Code protect: off
Data EE read project off
Band gap Cal V: Highest voltage
Pin 1: Vdd
Pin 2, OSC1 RC Connection
Pin 3, RA4 Output (DOT Mem Re-set)
Pin 4, RA3,MCLR Input (Check DOT input) Must be input!
Pin 5, RC5 Output (DASH Mem Re-set)
Pin 6, RC4 Input (Check DASH input)
Pin 7, RC3 Output (to sounder)
Pin 8, RC2 Input
Pin 9, RC1 Input
Pin 10, RC0 Input
Pin 11, RA2 Input
Pin 12, RA1 Input (INOPERATIVE) this is the problem, needs to be an input
Pin 13, RA0 Input (INOPERATIVE) same as above, needs to be an input
Pin 14, Vss
I would greatly appreciate your help please.
Stylo
I would first like to congratulate you on FlowCode; it's a great programme, can't wait for V4 to be out.
I am relatively new to programming but have managed to successfully build an 'Iambic Morse keyer' circuit (produces perfectly spaced Morse dots and dashes depending which way you move a paddle). The initial successful chip used was a PIC 12F629.
The problems started when I needed to have more I/O pins to accommodate programmed call signs, CQ and the like, that would be initiated from external push buttons, so I re-wrote the programme for the PIC 16F630, but although the programme compiles and runs as intended I am unable to get any response from the two inputs RA1 and RA0, Pins 12 and 13. They are both capable of being inputs according to the spec sheet. My suspicion is it may have something to do with these pins being the inputs for the internal comparator, BUT how do I activate them to be inputs using Expert Configuration?
While I'm on the subject of 'Expert Configuration' is there some information on this aspect of FlowCode that I can down-load or buy? It took me days of trial and error, frustration and a few sleepless nights to get the above almost fully working.
The programme is a loop with two inputs; one for dots and one for dashes. Each input is followed by a decision, which initiates a Macro; one Macro forms the dot followed by a space and the other Macro forms the dash followed by a space.
Both Macros output to pin 7, RC3, and then to a sounder and a switching circuit to the transmitter.
All but two of the other pins are inputs to similar decision and initiation of the macros but in this case they are in groups of dash and dot macros with spaces to give Radio Ham call signs on some inputs and the letters for CQ on another, etc.etc. The two outputs on RA4 and RC5 are Re-sets for a pair of external flip flops that form a memory, so if you speed ahead of the system and call for a dot while the dash is still playing the flip flops remember and stop you losing the dot. The same applies for the dash. Hope this makes some sense!
FlowCode V 3.2.2.40 Professional.
EXPERT CONFIG SETUP
Chip: 16F630
Clock: 4 Meg
Oscillator: External RC no clock
W D Timer: off
Power up timer: off
Master clear: Internal
Brown out Detect: on
Code protect: off
Data EE read project off
Band gap Cal V: Highest voltage
Pin 1: Vdd
Pin 2, OSC1 RC Connection
Pin 3, RA4 Output (DOT Mem Re-set)
Pin 4, RA3,MCLR Input (Check DOT input) Must be input!
Pin 5, RC5 Output (DASH Mem Re-set)
Pin 6, RC4 Input (Check DASH input)
Pin 7, RC3 Output (to sounder)
Pin 8, RC2 Input
Pin 9, RC1 Input
Pin 10, RC0 Input
Pin 11, RA2 Input
Pin 12, RA1 Input (INOPERATIVE) this is the problem, needs to be an input
Pin 13, RA0 Input (INOPERATIVE) same as above, needs to be an input
Pin 14, Vss
I would greatly appreciate your help please.
Stylo