williB
New Member
Ok I've modified the origional circuit posted eailier.
Now i only have two connections to RB7(the data pin on the Pic16F84A) ,one is comming from a ls241 Tristate buffer the other is going to a Ls 245 Bidirectional bus driver ( to get data out of the pic).
let me explain how the circuit works for a second then my question.
ok I am using two LS 74 Flip Flops ( two FF's each) . the FF's drive the three pins needed to program the pic for (ICSP).
the top FF in the circuit posted eailier drives a IRF 510 n-channel Mosfet, which drives MCLR of pic. this FF is driven by the Ls 138 which is decoded to address 378H on the PC.
So to turn on MCLR i do a pascal port write Port[$378]:=B (where B is a dummy varible), and this Presets FF to a logic one. Similarly to bring MCLR low i do a pascal Port write to port 379, which Clears FF and brings MCLR low.
also during programming,RB6 must toggle , which i do by writing to ports 37C & 37D Respectivly.
To input data to Pic I write to port 37A which Sets the FF driving the Buffer high and bringing RB7 high.
To read from RB7 I tristate the 241 with a FF, not shown in origional post,so a port write to 37E tristates the 241 and a write to port 37F lets data pass from second FF from the top in origional circuit...
*Whew* ok Question when i did a ' Load data for data memory' command. Two ones followed by four zeros then a startbit then eight data bits then the remaining tics on Rb6 to finish the fourteen required data bits followed by a stop bit...
Then when i did a 'Read data from program memory' the first time i got all zeros, Not what i put in , but not the point of my question..after the first time all i am getting out of the pic is ones ????
*Abridged version*
wether i bulk erase , or not ,all i am getting from pic ,after first time, is ones HELP..!!
loosing hair fast.
Now i only have two connections to RB7(the data pin on the Pic16F84A) ,one is comming from a ls241 Tristate buffer the other is going to a Ls 245 Bidirectional bus driver ( to get data out of the pic).
let me explain how the circuit works for a second then my question.
ok I am using two LS 74 Flip Flops ( two FF's each) . the FF's drive the three pins needed to program the pic for (ICSP).
the top FF in the circuit posted eailier drives a IRF 510 n-channel Mosfet, which drives MCLR of pic. this FF is driven by the Ls 138 which is decoded to address 378H on the PC.
So to turn on MCLR i do a pascal port write Port[$378]:=B (where B is a dummy varible), and this Presets FF to a logic one. Similarly to bring MCLR low i do a pascal Port write to port 379, which Clears FF and brings MCLR low.
also during programming,RB6 must toggle , which i do by writing to ports 37C & 37D Respectivly.
To input data to Pic I write to port 37A which Sets the FF driving the Buffer high and bringing RB7 high.
To read from RB7 I tristate the 241 with a FF, not shown in origional post,so a port write to 37E tristates the 241 and a write to port 37F lets data pass from second FF from the top in origional circuit...
*Whew* ok Question when i did a ' Load data for data memory' command. Two ones followed by four zeros then a startbit then eight data bits then the remaining tics on Rb6 to finish the fourteen required data bits followed by a stop bit...
Then when i did a 'Read data from program memory' the first time i got all zeros, Not what i put in , but not the point of my question..after the first time all i am getting out of the pic is ones ????
*Abridged version*
wether i bulk erase , or not ,all i am getting from pic ,after first time, is ones HELP..!!
loosing hair fast.