The basics


Closed Thread
Results 1 to 15 of 15

Thread: The basics

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by malc-c View Post
    So its the lower half of a byte - having 8 bits
    ......
    So it follows that we can set values for ADCON, CMCON etc much the same way as we can set which pins are inputs and outputs on each port eg PORTB=%00000000
    ......
    yes it does help and I appreciate the effort to post in such detail
    1) Yes - lower half, the lower 'nybble', bottom 4 bits...

    2) Yes, that's exactly the case! Almost everything in the PIC10/12/14/16/17/18 world (in general, the small microcontroller world) is based on the BYTE...8 bits...2 nybbles...left to right = most significant to least significant (gotta be careful when you start playing with WORDs, QUADs, LONGs, etc. Some MCU's don't order them the same in memory, little endian vs. big endian).

    Detail - I got on a roll, a rambling roll. Hopefully that little lecture will catch on and other 'less experienced' folks will read and comprehend it.
    Last edited by skimask; - 21st June 2008 at 23:30.

Similar Threads

  1. Bitwise operations and masks: basics, help?
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 19th April 2008, 00:24
  2. IR software & hardware basics
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 6th May 2007, 10:05
  3. basics programming
    By olivierb38 in forum General
    Replies: 3
    Last Post: - 18th February 2007, 18:56
  4. Timers, oscillators, cycles... need basics please
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 24th October 2006, 18:33
  5. SERIN basics
    By Michael in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 14th August 2006, 18:37

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