Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PIC16F684 - Hi-tech c

Status
Not open for further replies.

bigshoes

Newbie level 5
Joined
Oct 12, 2005
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,338
hi-tech c

Can anybody help me with a source code in c for a simple project using PIC16F684.
It can be a simple relay controller, meter, detector or any other project.
Any feedback will help.
Thanks.
 

hi-tech c pwm

I have alredy looked at this, it is a starting point. If any body has a code and a schmatic out there let me know. i will really appreciate.
 

pic16f684 pwm c

Hi!
Here is the source code for 16F684 in Hitech C.

It was written for a simple board. It interfaces to a character lcd in 4bit mode.
A pwm signal is generated on one of the pwm pins.
An ADC channel (AN3 PIN) is red and displayed on the lcd.
The software uses the internal oscillator as the system clock, therefore there is no need for external crystal.

LCD connections are

RC0----------LCD D4
RC1----------LCD D5
RC2----------LCD D6
RC3----------LCD D7

RA2----------LCD RS
RA5----------LCD E
GND---------LCD RW

Study it.
I will try to post the schematic.
I u face any problems feel free to ask.

Regards.
 

    bigshoes

    Points: 2
    Helpful Answer Positive Rating
pic16f684 c code relay

Hi,
How do you check when LCD is busy (function void check_lcd_busy(void);) if your LCD's RW pin is connected to GND ? ;)

Can You show us schema?
THX.
 

simple hitech c

Hi Sunok!
It is not necessary to check wheather the lcd is busy or not. Simply insert a suitable delay(max 5mill sec)between each command u send to the lcd module, as the maximum time taken by a command to execute is 1.52 mill sec (see the data sheet for HD44780).

Regards.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top