It should be simple to convert. The example is for an 8-pin PIC so pin designations will differ. I would start by comparing pin designations in the datasheets for the 12F629 and the PIC you want to use. Also, the example assumes an internal 4MHz oscillator. If you use a different oscillator frequency you need to adjust the values used with PulsIn/PulsOut accordingly. See the PBP manual entries for these commands.
You are still showing a 4-pin module as the receiver. The receiver has 8 pins. The datasheet for your receiver indicates its output for Logic HI is 0.7Vdd (3.5V with Vdd=5V). Table 17.4 of the PIC16F628A datasheet indicates that pins with Schmitt Trigger inputs need 0.8*Vdd (4V with Vdd=5V) for Logic HI while pins with TTL inputs only need 2.0V for Logic HI. Tables 5.2 & 5.3 of the PIC16F628A datasheet give the types of input buffers for the pins. I suggest you use a TTL input on Port B.
Also, RA5 is input only so your transmitter circuit isn't going to work as drawn. You need to choose another pin.
Bookmarks