PIC 18F - read TMR0 registers in 16 bits mode


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,705


    Did you find this post helpful? Yes | No

    Default Re: PIC 18F - read TMR0 registers in 16 bits mode

    Code:
    TRISB   = %00010000 'Data Direction Control Register (Input/Output)
    
    T0CON   = %11000111 '16-bit mode enabled  ?????  how do you figure that
    
    Define OSC 4 ' external oscillator
    from data sheet


    REGISTER 12-1: T0CON: TIMER0 CONTROL REGISTER

    bit 6

    T016BIT: Timer0 16-Bit Control bit
    1 = Timer0 is configured as an 8-bit timer/counter
    0 = Timer0 is configured as a 16-bit timer/counter
    Warning I'm not a teacher

  2. #2
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    952


    Did you find this post helpful? Yes | No

    Default Re: PIC 18F - read TMR0 registers in 16 bits mode

    Well Richard,

    It was, as a matter of fact, far too obvious to me to have bit 6 set to enable the 16-bit mode

    AAhhhhrrgggg!!!! Why doesn't these guys make customisable datasheets???

    Thanks a lot

    PS: next visit, my optician...
    Roger

Similar Threads

  1. shiftout with 32 bits long (ADF4351 registers)
    By F1CHF in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 26th August 2016, 17:15
  2. How to use symbolic names for bits within registers?
    By DwayneR in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 17th December 2009, 05:19
  3. XT oscillator mode & configuration bits
    By Ramonetnet in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 24th April 2008, 12:51
  4. Internal EEPROM Read/write Addressing Errors with 18F PIC's
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 18
    Last Post: - 12th July 2005, 20:42
  5. How to work with LCD in a mode of 8 bits?
    By MCU Destroyer in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 1st July 2005, 22:10

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