Free Project - 245 LED Display


Closed Thread
Results 1 to 40 of 222

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Hi Magu,

    Here:

    (Click to enlarge the picture).


    Did you manage to download the demo of PicBasic Pro and write
    the blink LED 1 program?

    Best regards,

    Luciano

  2. #2
    Join Date
    May 2007
    Posts
    43


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Luciano View Post
    Hi Magu,




    Did you manage to download the demo of PicBasic Pro and write
    the blink LED 1 program?

    Best regards,

    Luciano
    i download the program but i didn`t have time write it. i have poor knowledge it picbasic and i learn for now to write the program.

  3. #3
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Hi Steve,

    Can you please review the code below?
    The code will be compiled with the demo version of PicBasic Pro.

    We need this code in order to test the Odyssey II board.

    I hope Ithaca is not too far away!

    Thank you!

    Best regards,

    Odysseus (Ulysses) Luciano



    Code:
    ' File name: mblink.bas
    ' Target: 16f628A 
    ' Compile the file from the command line: pbpdemo.exe -p16f628a mblink.bas 
    '
    '
    '                  +5V
    '                   |
    '                  _|_
    '                 _\_/_  LED 1
    '                   |
    ' RA4-----/\/\/\----+
    '         300 ohm
    '
    '
    Define OSC 10       ' 10 MHz crystal used.
    CMCON = 7           ' Disable comparator, set PortA in digital mode.
          
    OUTPUT PORTA.4      ' Set RA4 as output
     
    loop: Low PORTA.4   ' Turn on LED 1, the pin RA4 sinks current.
          Pause 500     ' Delay for .5 seconds.
          High PORTA.4  ' Turn off LED 1, the pin RA4 floats, (RA4 open drain output). 
          Pause 500     ' Delay for .5 seconds.
          Goto loop     ' Go back to loop and blink LED 1 forever.
    End

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


    Did you find this post helpful? Yes | No

    Default

    This has to work. But i would add the Configuration fuse line at the top.

    I hope the Demo Allow that...
    Code:
    <font color="#008000">' File name: mblink.bas
    ' Target: 16f628A 
    ' Compile the file from the command line: pbpdemo.exe -p16f628a mblink.bas 
    '
    '
    '                  +5V
    '                   |
    '                  _|_
    '                 _\_/_  LED 1
    '                   |
    ' RA4-----/\/\/\----+
    '         300 ohm
    '
    '
    </font><font color="#000080">@   device pic16f628A, hs_osc, lvp_off, mclr_off, pwrt_on, cpd_off
    
    DEFINE </font>OSC 10       <font color="#008000">' 10 MHz crystal used.
    </font>CMCON = 7           <font color="#008000">' Disable comparator, set PortA in digital mode.
          
    </font><font color="#000080">OUTPUT </font>PORTA.4      <font color="#008000">' Set RA4 as output
     
    </font>loop: <font color="#000080">LOW </font>PORTA.4   <font color="#008000">' Turn on LED 1, the pin RA4 sinks current.
          </font><font color="#000080">PAUSE </font>500     <font color="#008000">' Delay for .5 seconds.
          </font><font color="#000080">HIGH </font>PORTA.4  <font color="#008000">' Turn off LED 1, the pin RA4 floats, (RA4 open drain output). 
          </font><font color="#000080">PAUSE </font>500     <font color="#008000">' Delay for .5 seconds.
          </font><font color="#000080">GOTO </font>loop     <font color="#008000">' Go back to loop and blink LED 1 forever.
    </font><font color="#000080">END
    </font>
    Steve

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

  5. #5
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Hi Steve,

    Yes it does and IC-Prog 1.05E recognizes the configuration word.

    Thank you!

    Best regards,

    Luciano

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


    Did you find this post helpful? Yes | No

    Default

    Good news!

    Bienvenue Luciano, bonne chance
    Steve

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

  7. #7
    Join Date
    May 2007
    Posts
    43


    Did you find this post helpful? Yes | No

    Default dear luciano

    soo . . . what shall i do next .

Similar Threads

  1. Conway's Game Of Life
    By wellyboot in forum mel PIC BASIC Pro
    Replies: 45
    Last Post: - 28th May 2020, 06:14
  2. Single digit 7 Seg LED clock - PIC16F88
    By thirsty in forum Code Examples
    Replies: 4
    Last Post: - 17th July 2009, 08:42
  3. Replies: 2
    Last Post: - 14th July 2008, 22:11
  4. 245 Led Matrix Display (as constructed by Magu)
    By magu in forum Code Examples
    Replies: 11
    Last Post: - 29th June 2007, 00:07
  5. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30

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