HC-12 wireless transceivers
Has anyone used the HC-12 wireless RS-232 modules on ebay? My modules seem to work fine with Arduino but I am having no luck using a 16F628A/16f616. Very simple code below returns
4
8
2
96
128
32
16
32
32
32
16
128
96
4
16
64
128
128
Transmitter Code 16F616:
Tx:
SEROUT PORTC.5,6,[2] 'sends 2 to the HC-12 every 3 seconds
PAUSE 3000
GOTO TX
Receiver Code 16F628A:
OVER:
SERIN2 PORTB.2,16468,3000,OVER,[V1]
IF V1 = 0 THEN GOTO OVER
SEROUT PORTB.5,6,[#V1,10] 'Output to serial Monitor
GOTO OVER
Bookmarks