18f4520 TMR0 8Bit question


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2013
    Posts
    32

    Default 18f4520 TMR0 8Bit question

    Hi guys, a simple quick question, should i load TMR0L or TMR0 when using timer0 in 8 bit mode ?

    T0CON=%11000010 ;Timer 0 is on, 8 bit mode, 1/8 prescaler
    TMR0=254 ;start timer

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,802


    Did you find this post helpful? Yes | No

    Default Re: 18f4520 TMR0 8Bit question

    Only if you want to start from a specific value. Otherwise, this timer counts as long as there is system clock.

    Ioannis

  3. #3
    Join Date
    Dec 2010
    Posts
    409


    Did you find this post helpful? Yes | No

    Default Re: 18f4520 TMR0 8Bit question

    Page 124 of the datasheet shows that TMR0L is used in 8 bit mode.

Similar Threads

  1. TMR0 Pre Scale Question
    By shawn in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 9th March 2008, 05:09
  2. Sharp GP2D12 8bit
    By Argo in forum mel PIC BASIC
    Replies: 0
    Last Post: - 25th October 2007, 23:40
  3. lcdout 8bit problem!!!!
    By santamaria in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 1st June 2007, 18:24
  4. AD Conversion 8bit 10bit
    By Eric123 in forum mel PIC BASIC
    Replies: 2
    Last Post: - 28th May 2007, 15:44
  5. Reading a 8bit Binary word
    By Moz in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 3rd September 2004, 00:44

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