setting up HPWM


Results 1 to 9 of 9

Thread: setting up HPWM

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    1 ) From where you get this statement @CSize=CODE_SIZE ?
    From my head

    CODE_SIZE
    this is a PBP internal variable that return the code size of the PIC you use. If i open the 16F877.BAS file in the PBP directory and i scroll a little bit in, i will find the following...
    Code:
    DEFINE  CODE_SIZE 8
    YEAH! 16F877 is a 8K size

    @CSize=CODE_SIZE
    It define an assembler variable

    Later i used
    CSize con EXT

    This allow to have this value available in the PBP code

    3 ) You use in this code (CSize*1024)-512 can explain me about it ?
    8K=8*1024 Bytes
    the -512 is because i used the Bootloader. The bootloader program is usually located at the end of the codespace. so the first Table address is located 512 bytes before the codespace end.
    Last edited by mister_e; - 21st October 2006 at 19:49.
    Steve

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

Similar Threads

  1. PICKit2 - warning about configuration words
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 26
    Last Post: - 4th August 2009, 14:01
  2. HPWM of the port of two HPWM
    By ja2rqk in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 25th April 2007, 15:05
  3. Setting up 5 HPWM pins on 18F4680
    By tcbcats in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 2nd August 2006, 05:54
  4. sound command & music
    By trying in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 26th May 2006, 14:14
  5. 3 HPWM channels
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 4th April 2006, 02:43

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