Writing 16 bit numbers to timer 1


Results 1 to 3 of 3

Threaded View

  1. #2
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    I don't know how to do this automaticly from a value such as 34657, and I don't know ASM.
    Hi bison_bloke, just devide your number as the below example.

    tmr1H = 34657/256 ' (extract the high byte)

    tmr1L = 34657-(tmr1H*256) ' (extract the low byte)


    Al.
    Last edited by aratti; - 24th March 2010 at 11:52.
    All progress began with an idea

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