Basic Newbie.


Closed Thread
Results 1 to 4 of 4

Thread: Basic Newbie.

  1. #1
    Join Date
    Nov 2011
    Posts
    2

    Default Basic Newbie.

    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

  2. #2
    Join Date
    Oct 2009
    Location
    Utah, USA
    Posts
    427


    Did you find this post helpful? Yes | No

    Default Re: Basic Newbie.

    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?
    Dwight
    These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.

  3. #3
    Join Date
    Nov 2011
    Posts
    2


    Did you find this post helpful? Yes | No

    Default Re: Basic Newbie.

    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.

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: Basic Newbie.

    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
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts