PDA

View Full Version : Basic Newbie.



keyboard
- 7th November 2011, 00:25
Hi Guys,

i am struggling with some basic code. i have a 7 segment display and two switches connected to a PIC.
with one switch i set my number of pulses (1- 10 and loop back) for example, and also display it . with the second PB, when pressed, output the set number of pulses (1 sec each) to an output.

Thanks in advance.

KB

Heckler
- 7th November 2011, 01:27
Hi KB,
Welcome to PIC basic...

It would be best if you would post your efforts at starting this program you describe and then we can give you suggestions and guidance.

There are numerous code examples in this forum... in the wiki (at the top of the forum header)... etc.
You can learn by studying others code and then having a stab at it your self.

What PIC are you going to use?

keyboard
- 7th November 2011, 18:59
Hi Heckler,
Thanks for your reply.
i am using a 16F628A chip. i'm a little embarrassed to put my code up.It works to scroll numbers on switch presses, looks ok on the simulator, but i can't even get a led to blink on my breadboard. i'm not a real fresher at this , but just looking for pointers.
Thanks.

mister_e
- 7th November 2011, 19:22
My crystal ball tells me you may have some problem with the configuration fuses (internal OSC or not, MCLR enabled or not) AND/OR some features on some specific I/O.... like analog ... open drain...

to the rescue
http://www.picbasic.co.uk/forum/showthread.php?t=543

http://www.picbasic.co.uk/forum/showthread.php?t=561

http://www.picbasic.co.uk/forum/showthread.php?t=11116