PIC16F767 blinking code


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e
    NOPE, DEFINE is a compiler directive and MUST be added at the top of the code. OSCCON is a PIC register that must be set like all the otheres. Let's Say TXSTA, RCSTA, SPBRG.

    Do a simple Test, with your current OSCCON setting do a simple LED blink. use DEFINE OSC 4.. then use DEFINE OSC 8

    what happen?

    That is what I thought so.
    Daniel, could you pls test it and post the result?


    -----------------
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  2. #2


    Did you find this post helpful? Yes | No

    Default

    With DEFINE OSC 8 the LEDs are blinking slowly...

    With DEFINE OSC 4 the LEDs are blinking faster...

    I'm confused... :|
    Last edited by DanPBP; - 16th October 2006 at 14:50.

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


    Did you find this post helpful? Yes | No

    Default

    Normal... they have to blink twice the speed of DEFINE OSC 8 right?
    Steve

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

Similar Threads

  1. I2C Master/Slave 16F88/16F767 working code
    By DanPBP in forum Code Examples
    Replies: 2
    Last Post: - 23rd October 2012, 22:31
  2. Reading in Manchester code
    By brid0030 in forum Code Examples
    Replies: 0
    Last Post: - 10th March 2009, 21:55
  3. How much code space do PBP statements use.
    By Darrel Taylor in forum Code Examples
    Replies: 5
    Last Post: - 13th February 2009, 21:31
  4. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  5. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26

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