Re: ok
TKS said:
ok i have it now running on 20Mhz wy??
because the other chip use it also has
(16F818/9) if i will use the internal ocs it will be 8 if output it it will be 2?? 2 my compiler doesn't accept. i can buy a 4Mhz external one that will help.
I'm a bit confused by that?, the input and output are the same frequency, it's the internal clock speed which is 1/4 of the crystal - everything external is at the full crystal frequency. It's VERY common for the internal processor to run at a fraction of the clock speed, almost all do - the Z80 ran particularly slow.
If you have one PIC running with a 20MHz crystal, and link it's output to the clock input of the goldcard, then the goldcard will run at 20MHz as well (and internally at 5MHz - just like the first one).
back:
soow i loaded a test prog in it
RB7 high for 1 sec and then low for 1 sec etc..
it works
but!!
you forgot one thing i think.
RB6 is conected to pin 16 on the card soow if i use that one for serial comm my OSC input goes wrong right??
Yes! - sorry about that, I hang my head in shame!!
soow i only have 1 wire to communicate.
i don't untherstand wy the hell they didn't use some more contacts on the card to the other pins... :cry: :cry: :cry:
Because of what the card is, it's designed to use the standard connections for a smart card - so it's pretty pointless adding extra non-standard ones.
what would you suggest for 1 wire communication....?? a simple timing routine?? or would you do some communication routine??
i need to do something soow it is unique..
The usual point of them is to use a standard communication protocol, so it can connect with a standard card reader - it's what the card does with the data that's important - not the communication link.
What are you actually trying to do?.
maybe i didn't tll its a wafer type card..soow i don't have acces to the chips..
I presumed that, I've seen them advertised for satellite decryption cards.
p.s. one thing i already learnd is you have to put RB6 to input mode if you don't it will be high and then it braks the osc input signal...
Yes, if it's set as an input it's high impedance, and won't affect the clock, if it's an output it's low impedance (if it's high, or if it's low), this will obviously kill the clock signal.
basicly rb6i only used for programming.
True
RB7 is then left for comm.
p.s. if i code protect the card it isn't possible to read the code right? now one exept microchip maybe???
It's certainly not easily possible, if you search hard enough you can find various schemes for breaking protection on any processors, but PIC's are probably as secure as most.