Total Newbie...


Closed Thread
Results 1 to 18 of 18

Thread: Total Newbie...

Hybrid View

  1. #1
    Join Date
    Aug 2008
    Posts
    39

    Default Total Newbie...

    Hi all I am totally new to programing Pics, and I am looking for some good tutorials.

    I currently am using Microchips PIC18 explored board, along with PICBasic Pro. The Pic is an 18F8722.

    Right now I have gott two pieces of code to work, I can blink an LED, and I can turn an LED on and off when I press a button... sounds simple, but like I said I am totally new.

    What I want to do next is to have the 8 on board leds display the status of 8 bits, but I am totally lost on how to do this...

    Any help would be great!

    Thanks,

    Lou

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Welcome to the forum.

    This example might do the trick
    http://www.microengineeringlabs.com/...pbc/countx.bas
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Aug 2008
    Posts
    39


    Did you find this post helpful? Yes | No

    Default

    Thanks...

    I actually got it working before I read this... Had to set the Port as Outputs...

    Now my next question:

    The PIC18 explored poard has an LCD display on it. It is connected through an SPI I/O expander, MCP23S17. How do in therface it??? Microchips Manual is totally useless for me since I have no programming background...

    The user guide states this:

    An LCD display with two lines, 16 characters each, is connected to the SPI I/O
    expander, MCP23S17. The two control lines and eight data lines are connected to the
    I/O expander.
    The I/O expander has an SPI interface that connects it to the microcontroller.The I/O
    expander is disabled or enabled from the SPI by jumper JP3.
    Last edited by Frozen001; - 8th August 2008 at 16:06.

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Not familiar with that board. Do you have a link to the docs?
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Aug 2008
    Posts
    39


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    Not familiar with that board. Do you have a link to the docs?
    http://www.microchip.com/stellent/id...cName=en535770

  6. #6
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Well, hate to give you a bit of bad news, but you can't drive that LCD directly using PicBasicPro (maybe you already knew that, maybe not...)
    It's set up such that the I/O from the expander drive the LCD pins. The LCD is a standard parallel, Hitachi 44780 compatible type from the looks of it.
    If you do a Google search on that term, you should be able to find some documentation on how to drive it. I don't have anything with me at the moment or I'd attach it here.
    Once you get your head wrapped around driving that LCD thru the I/O expander, it should be a piece of cake.
    Since the board is from Microchip, I can't imagine somebody NOT having already written some 'libraries' to handle that.

Similar Threads

  1. Newbie making an ignition timer
    By ChrisHelvey in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 5th August 2012, 17:45
  2. Controlsystem for compact sporting (clay shooting)
    By Fredrick in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 30th July 2009, 16:48
  3. Total Motor Currents
    By Darrel Taylor in forum Off Topic
    Replies: 29
    Last Post: - 13th October 2008, 00:50
  4. Newbie: Temperature measurements
    By Budda in forum General
    Replies: 10
    Last Post: - 30th March 2007, 09:56
  5. request for a newbie forum
    By nimonia in forum Forum Requests
    Replies: 1
    Last Post: - 20th May 2006, 09:01

Members who have read this thread : 0

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