Problem with 16Ff648a


Results 1 to 19 of 19

Threaded View

  1. #16


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    This program tries to clear the same memory without the clear statement.
    It doesn't do banks 0 or 1 because they were already checked with the 628 program loaded in the 648.

    Code:
    DEFINE OSC 20 
    
    Idx     VAR BYTE
    B2RAM   VAR BYTE[80] BANK2
    COUNTER VAR BYTE
    
    FOR COUNTER = 0 TO 10 ' confirms beginning of program
        LOW PORTA.0
        PAUSE 250
        HIGH PORTA.0
        PAUSE 250
    NEXT
    
    TEST:
    
    FOR Idx = 0 TO 79
        B2RAM(Idx) = 0
    NEXT Idx
    
    LOW PORTA.0   ' turn LED on to indicated completed
                  ' may need HIGH don't know which way the LED is.
    STOP
    Probably nonsense, but I'm still curious.
    <br>


    Hi Darrel

    Thank you very much for the code, it works with no problem, I then modified it to check that after writing 0 to the location it was read back to see if it had been written correctly, answer is yes. I then made it keep doing, and again no failures.

    Something is very strange. I have ordered some more 648As from another supplier, they may arrive tomorrow


    I have just been looking through the listing and see that PB shows the following

    16 =0020 RAM_START EQU 00020h
    17 =01EF RAM_END EQU 001EFh
    18 =0003 RAM_BANKS EQU 00003h
    19 =0020 BANK0_START EQU 00020h
    20 =007F BANK0_END EQU 0007Fh
    21 =00A0 BANK1_START EQU 000A0h
    22 =00EF BANK1_END EQU 000EFh
    23 =0120 BANK2_START EQU 00120h
    24 =01EF BANK2_END EQU 001EFh
    25 =2100 EEPROM_START EQU 02100h
    26 =21FF EEPROM_END EQU 021FFh

    page 17 of my data sheet shows that bank 2 ends at 16FH not as it says above, 1EFH , could this be the problem or am I missing the obvious ?

    What do you think ?

    edit.

    I have just changed the bank 2 end location to 16FH from 1EFH in the 648a.bas file and recompiled using the program in post 14, with the clear in position.......it works perfectly... so do you think I have found the problem ?
    Last edited by aerostar; - 12th November 2009 at 14:38. Reason: New info added

Similar Threads

  1. Problem to compile my program
    By wagner in forum Off Topic
    Replies: 5
    Last Post: - 7th July 2008, 20:17
  2. USART Problem , but don't know where, in pc? or in PIC?
    By precision in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th July 2007, 08:12
  3. Microcode Studio 18f2455 problem?????
    By volkan in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 21st May 2007, 21:04
  4. Hardware problem or what ?
    By Steve S. in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 4th March 2007, 21:39
  5. 1 slave 1 master 1 MAX232 1 problem ?
    By SuB-ZeRo in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 31st July 2005, 22:59

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