Menu

Frequently Asked Questions Log in to Edit

Mikael Nordman

PIC24-30-33 registers seem not to work
At start-up, FF for PIC24-30-33 disables all the Peripheral Modules controlled by Peripheral Module Disable registers, PMD1, PMD2, PMD3, PMD4, PMD5, PMD6, PMD7.
A register belonging to a powered down peripheral is not writable.

As example here the ADC is powered up in order to use it.

: AD1_init  ( -- )
   ad1md pmd1 mclr     \ Power up the ADC Module
   ...   ;

PIC24, PIC30, PIC33 does not recognize all words
The 16-bit ASM30 and XC16 generates faulty code randomly.
This fault has been reported in 2010 by me and it has been recognized by Microchip in ASM30.
I do not know in which version of ASM30 the fault has been fixed.
Workaround: enable the program listing for the assembler.
Then the assembler will generate correct code.


Related

Wiki: Home

Discussion

  • Christian Hinse

    Christian Hinse - 2022-11-18

    UNO Atmega328p -2over incorrect definition: same as 2dup

    warm FlashForth 5 ATmega328 13.06.2022

    1. ok<#,ram> 1 0
    2. ok<#,ram> 1 0 2 0
    3. ok<#,ram> 1 0 2 0 3 0
    4. ok<#,ram> 1 0 2 0 3 0 4 0
      2dup ok<#,ram> 1 0 2 0 3 0 4 0 4 0
      2drop ok<#,ram> 1 0 2 0 3 0 4 0
      2over ok<#,ram> 1 0 2 0 3 0 4 0 4 0
      see 2dup
      1284 d0d5 rcall over
      1286 940c 0398 jmp over
      ok<$,ram> 1 0 2 0 3 0 4 0 4 0
      see 2over
      4552 940e 0398 call over
      4556 940c 0398 jmp over
      ok<$,ram> 1 0 2 0 3 0 4 0 4 0

    Is there a correction for this problem?

     
  • Mikael Nordman

    Mikael Nordman - 2022-11-18

    From where did you get the code for 2over ? It does not exist in the Atmega Flashforth repository.

    It would be better if you ask questions in the discussion forum. Not in the wiki.

    BR Mikael

     
  • Christian Hinse

    Christian Hinse - 2022-11-20

    You are absolutely correct, my 2over was the result of an old experiment with Flashforth where it was needed and improperly implemented by myself.

    Now, regarding posting in here, I never really figured out how to post support questions on Flashforth . It took me an 1 hour to find this place to post a comment.

    I don't know where is the appropriate place to ask for help.

    I post wherever I can find a place to post.

    If I never found the proper way to ask for help on Flashforth, it is probably because Flashforth is mature and stable and rarely requires any assistance.

    Thanks for your help.

     
  • Mikael Nordman

    Mikael Nordman - 2022-11-21

    Questions are best asked and answered here:
    https://sourceforge.net/p/flashforth/discussion/726813/

    I have uploaded hex files that have 2OVER for the Atmega.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.