Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Urgent help needed with coding the PIC16F737 in C

Status
Not open for further replies.

moldmereal

New Member
Hi guys, i have an upcoming project that is meeting the dateline...
my project is basically a project that consists of two boards..

The first board is the Transmitter board,
it consists of a 4 x 4 way DIP switch and a PIC16F737 with a Easy Radio ER400TRS transceiver module

The second board is the Receiver board with a 4 x 7seg display an LTC-4627JR and a PIC16F737 and also a Easy Radio ER400TRS

The schematics are pretty much done.. but i would need serious help on the programming as i am clueless on how to use the HI-TECH C compiler and how to code my programs to suit the transmitter and receiver.

Anyone with the relevant experience please do help me ! Its pretty urgent !
Thank you guys very much !!
 

Attachments

  • RX.JPG
    RX.JPG
    87.6 KB · Views: 214
  • TX.JPG
    TX.JPG
    82.1 KB · Views: 189
Then install hitech c to mplab, look into hi tech c sample folder. there are a lot of examples. grab what you need and compile it to make your codes :)
 
hi moldmereal,
May I ask why this has become so urgent, is it a school assignment.??
 
Yes guys, it is a school assignment and it's the last lap i have to clear.. i have rubbish teammates.. i will look into the sample codes !! anyone can give me a rough idea on how to start ?
 
apparently i have to drive a 4 x 7 segment led, enable USART for my transceiver, and read and save inputs from 4 4 way dipswitches.. and transmit them through my transceiver..
any rough idea on how to start ?
 
Takes me back to the good old days!
For the 4X7, look up row / column driving, this involves switching fast, maybe using bitmasks, and persistence of vision to make it appear that more than one LED is on at any one time, the UART is what you need to talk to the Transceiver, I am assuming you are feeding a straight TTL serial signal to it, and not have to do any Manchester encoding etc, if so, just set up the correct baud rate either end, and use the hardware UART (if your PIC has one), else you will need to use a software UART which is not impossible, but may make it more difficult.

You normally TX / RX one character at a time, so have a buffer ready!

Reading inputs and saving them to local variables I assume? You can read individual bits, or an entire port, send it through one character at a time, so one character = one dip switch array.

First of all, look up row / column driving, and have a lookup table of each digit (0-9) so you can call for each segment.

Secondly I would look up if your chip has a hardware UART, if so, use that, if not, you will have to look up software UART routines.

Wilksey
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top