Troubled with Instant Ints and TMR2


Closed Thread
Results 1 to 28 of 28

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Red face Doh!

    Doh!
    Doh!
    Doh!
    A whole day looking a that

    Darrel this is the next question (i havent even look through it), now i have an array of 15 bytes, but i see it has a pointer EXT, is there a way to point to each Bit of this array? i am going to do some math to each bit now and this would be useful.

    Something else, this project is short in code Space since i only have 2k of my 628A (no16F88 around here) removing ReEnter could save me 150 instructions? the fact is this piece of code is like 780 words already and i havent done anything :P.

    Anyway tomorrow iŽll do the short math, iŽll begin to cry when the word count reaches 1800.

  2. #2
    Join Date
    May 2006
    Location
    Del Rio, TX, USA
    Posts
    343


    Did you find this post helpful? Yes | No

    Default

    ...is there a way to point to each Bit of this array?
    Melanie has provided the answer. See 3. How can I reference a BIT in a BYTE ARRAY? in her very helpful Bits, Bytes Words and Arrays Post.

    Thanks again Melanie.

    SteveB

  3. #3


    Did you find this post helpful? Yes | No

    Default Thanks for that link Steve

    Thanks Steve i will be using it.

    On the other hand.

    Darrel this link
    http://www.picbasic.co.uk/forum/show...php?t=3891#LAB ...

    Its the post about the EXT modifier, i have been using it as a label to create tables in codespace in the past, BUT: right now i am using 628A wich doesnŽt support READCODE instruction, can i still use it to create a table in codespace? if so (i guess i can) how can i read it?. It is a 14 bits x 120 Word, since the device is 14 bit i guess i could store each word in a memory space? kind of like the code to store strings in codespace? I havent been able to use the last one since i dont know how the data would be stored as Words and not as strings. Again ignorant about asm.

    This is my table

    Code:
    </i></font><b>ASM
    </b><font color="#008000">DataTable
        DW 11111111111111b
        DW 01010111111111b
        DW 00000101010101b
        DW 00000001010101b
        DW 10101000000101b
        DW 11111000000000b
        DW 01111110000000b
        DW 01011110101000b
        DW 00000111101010b
        DW 10000011111010b
        DW 11100001111110b
        DW 11111001011111b
        DW 01111000010111b
        DW 00011100010111b
        DW 10000110000101b
        DW 10000110000001b
        DW 11100010100001b
        DW 01110011100000b
        DW 00111011111000b
        DW 00011101111000b
        DW 10001101111110b
        DW 11000100011110b
        DW 11100100011111b
        DW 01110010000111b
        DW 00111010000111b
        DW 10011011100001b
        DW 10001111100001b
        DW 11001101100001b
        DW 01100101111000b
        DW 00110000111000b
        DW 00110000011000b
        DW 10011010011110b
        DW 11001010001110b
        DW 01001110000110b
        DW 01100111000111b
        DW 00110111100111b
        DW 10110001100011b
        DW 11010001110001b
        DW 11001000111001b
        DW 01001100011001b
        DW 00101110011000b
        DW 10110110011100b
        DW 10110111001100b
        DW 11010011001110b
        DW 01001001100110b
        DW 01001001100111b
        DW 00101100110011b
        DW 10110100110011b
        DW 11110110110001b
        DW 11010010011001b
        DW 01000010011001b
        DW 00001011001100b
        DW 10101111001100b
        DW 10111101101100b
        DW 11110101100110b
        DW 01010100100110b
        DW 00000000110110b
        DW 00001010110011b
        DW 10101010010011b
        DW 11111111011011b
        DW 01111111011001b
        DW 01010101001001b
        DW 00000001001101b
        DW 10000000101100b
        DW 11101000100100b
        DW 11111010110110b
        DW 01111110110110b
        DW 00010110110010b
        DW 00000111010011b
        DW 10000011010011b
        DW 11100001001011b
        DW 01111001001001b
        DW 01111100101101b
        DW 00011100101101b
        DW 10000110101100b
        DW 11000110110100b
        DW 11100011110100b
        DW 01111011010010b
        DW 00111001010010b
        DW 10011101000010b
        DW 10001100001011b
        DW 11000100001011b
        DW 01100010101011b
        DW 00110010101101b
        DW 00111010111101b
        DW 10011011110101b
        DW 11001111010100b
        DW 11000101010100b
        DW 01100101010010b
        DW 00110000000010b
        DW 10111000001010b
        DW 10011010101011b
        DW 11001110101011b
        DW 01001111111111b
        DW 00100111111101b
        DW 00110001111101b
        DW 10110001010101b
        DW 11011000010100b
        DW 01001000000000b
        DW 01001110000000b
        DW 00100110100010b
        DW 10110110101010b
        DW 11110011101010b
        DW 11010011111111b
        DW 01001001111111b
        DW 00001101011111b
        DW 10101100010101b
        DW 10110100000101b
        DW 11110110000101b
        DW 01010010000000b
        DW 01001011100000b
        DW 00001011101010b
        DW 10101101111010b
        DW 11111101111010b
        DW 11110100111111b
        DW 01010000011111b
        DW 00000010010111b
        DW 10001010000101b
        DW 10101010000101b
        DW 11111111100001b
    </font><b>ENDASM

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


    Did you find this post helpful? Yes | No

    Default

    There's still the 128 Byte EEPROM on board option... but it's way too limited.

    LOOKUP(2)?

    External EEPROM?
    Last edited by mister_e; - 6th October 2007 at 16:50.
    Steve

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

  5. #5


    Did you find this post helpful? Yes | No

    Default Hi! Thanks Eproom for other stuff

    Eproom will store the strings of my LCD, and i would need 256 Bytes to store this table in Eproom vs the posible 120 "SemiWords" of codeSpace.

    Thanks for your concern

    And.. no external component.. i am looking for a low budget device here, also low Real State.

  6. #6
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Josuetas View Post
    Doh!
    Doh!
    Doh!
    A whole day looking a that

    Darrel this is the next question (i havent even look through it), now i have an array of 15 bytes, but i see it has a pointer EXT, is there a way to point to each Bit of this array? i am going to do some math to each bit now and this would be useful.

    Something else, this project is short in code Space since i only have 2k of my 628A (no16F88 around here) removing ReEnter could save me 150 instructions? the fact is this piece of code is like 780 words already and i havent done anything :P.

    Anyway tomorrow iŽll do the short math, iŽll begin to cry when the word count reaches 1800.
    Hi Josuetas,
    16F648A is the same chip with 2X the codespace and similar price, uses same data sheet too, but you get 4K instead of 2K.
    JS
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  7. #7


    Did you find this post helpful? Yes | No

    Default Thanks Joe just need to store table in codespace.

    You cant imagine how nice it would be for me to find one around here!

    The fact is that 648A is sold out, today i went looking for it with no success.

    Not finding supplies around here really makes me sad.

    So it seems i will have to upgrade the uC to something like 876A, easily found here. Though more expensive. Its sad because 876A is not improving anything for me, maybe just the speed, but even there i will have to use an external OSC ($$).

    What i really need here is 16F88, int OSC 8 Mhz always better than 4 Mhz and 4K memory should be enough.

    I am from Colombia South America by the way... wanna switch?


    Leaving this discussion Aside... i am not done with 628A you know? i havent reached 1800 words (where i will cry) right now i just need to store the table in code space... do you know the way? the solutions about this given in the forum use READCODE wich 628A cant execute.

  8. #8
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Aside from lack of PICs, oh and that thing about the cartels . . .I hear Colombia has many nice things, great coffee, emeralds, cattle ranches, I knew a girl from there who went back and became Miss Colombia, and she was cute too !, but no I am too old to make that big of a change. I did not know from where you are hailing, will U S Suppliers not ship to Colombia? I do not know of any techknowlegy restrictions regarding shipping to your Country, You might check with www.Mouser.com
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  9. #9


    Did you find this post helpful? Yes | No

    Default Sure you are right

    No complains... it would take like two weeks for that pic to arrive here, and would cost me around 45 dolars (Shipping). Its not that i cant find pics here... there are just not all the ones i want.. switching to 876 its possible but... we are forgetting the real problem... nOT THE PIC!!... i need to store and retrieve that table!!! it has to be pretty simple.. REMEMBER 628 still has free code space.

    By the way every one seems to know someone from Colombia... iŽve had more foreign Girlfriends than girls from here.. although yes YES... women here are hot hot. I was kidding about switching iŽve been to many places and i wouldnt.... but the invite is still on the table you MUST visit us ... someday...

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