A
Activ8
Guest
plbht: I just went through a bunch of OT subject changed headers and
some of it blows and some of it is fun.
Bad new first, right?
EE:
Basically looking for code or suggestions to receive and verify an 8
bit ID code with a PIC.
PIC12F6875 - one sending data, another waiting for ID code.
4 MHz clock
gosintas: 1 on INT pin
gosoutas: 1, and who friggin' cares?
Data rate
433.92 MHz OOK RF link
If anyone has found the Microchip code eg for the garage door opener
type thingy, I haven't, and would appreciate the link. Their code
egs aren't easy to find IME.
gotta Rx an ID code from an RF link. Redundant Txs = true; I'll have
a few chances to verify a valid ID code before the world comes to an
end.
I'll Tx a preamble (or not) followed by an ID code.
I figger if I sample at a rate that's 3x bit rate (2400 baud max)
I'll be OK. IOW 2 1's out of 3 bits sampled = 1 - that makes up for
TARFU radio link. If not, TFB. Non critical app.
The Rx has no apriory knowledge of when the ID code will be sent
except that the ID code will be proceeded by a preable frame (or
not) to syncronize the Rx. After the preamble (or lack thereof ),
an 8 bit ID code will be sent.
PIC will run at 4 MHz clock (1 MHz instruction cycle) Data Rate is
low like 2400 baud. The Rx will wake the PIC via INT pin which will
also be the data in bit. Tx is OOK & IIRC wake will indicate the
first 1 Rx'd.
****
My brain's rough guesstimate is telling me that once the preamble
syncs the Rx, there's little chance at 3 sps that 8 bits could go
out of sync. Even with a 4 MHz resonator on the PIC or 4 MHz
internal osc, calibrated.
d'y'all agree with that assumption?
****
I never did find the uChip code for the garage door opener type
thingy and no, this is not a garage door opener, but may as well be
BTW, this POS has already been budgeted for production units at <$16
USD weighted avg per unit at 1 Tx unit w/ 5 Rx units - so we can't
talk about Sears, Home Depot, etc., just algoithms, really - unless
you change the subject line, add [OT], and deal with 20,000
additional subject changes, whines, bitches, etc.
--
Best Regards,
Mike
some of it blows and some of it is fun.
Bad new first, right?
EE:
Basically looking for code or suggestions to receive and verify an 8
bit ID code with a PIC.
PIC12F6875 - one sending data, another waiting for ID code.
4 MHz clock
gosintas: 1 on INT pin
gosoutas: 1, and who friggin' cares?
Data rate
433.92 MHz OOK RF link
If anyone has found the Microchip code eg for the garage door opener
type thingy, I haven't, and would appreciate the link. Their code
egs aren't easy to find IME.
gotta Rx an ID code from an RF link. Redundant Txs = true; I'll have
a few chances to verify a valid ID code before the world comes to an
end.
I'll Tx a preamble (or not) followed by an ID code.
I figger if I sample at a rate that's 3x bit rate (2400 baud max)
I'll be OK. IOW 2 1's out of 3 bits sampled = 1 - that makes up for
TARFU radio link. If not, TFB. Non critical app.
The Rx has no apriory knowledge of when the ID code will be sent
except that the ID code will be proceeded by a preable frame (or
not) to syncronize the Rx. After the preamble (or lack thereof ),
an 8 bit ID code will be sent.
PIC will run at 4 MHz clock (1 MHz instruction cycle) Data Rate is
low like 2400 baud. The Rx will wake the PIC via INT pin which will
also be the data in bit. Tx is OOK & IIRC wake will indicate the
first 1 Rx'd.
****
My brain's rough guesstimate is telling me that once the preamble
syncs the Rx, there's little chance at 3 sps that 8 bits could go
out of sync. Even with a 4 MHz resonator on the PIC or 4 MHz
internal osc, calibrated.
d'y'all agree with that assumption?
****
I never did find the uChip code for the garage door opener type
thingy and no, this is not a garage door opener, but may as well be
BTW, this POS has already been budgeted for production units at <$16
USD weighted avg per unit at 1 Tx unit w/ 5 Rx units - so we can't
talk about Sears, Home Depot, etc., just algoithms, really - unless
you change the subject line, add [OT], and deal with 20,000
additional subject changes, whines, bitches, etc.
--
Best Regards,
Mike