Menu

pps+ not working (?) on pic24fj256ga705

ronny suy
2024-03-24
2024-03-25
  • ronny suy

    ronny suy - 2024-03-24

    Hi ,
    I want to change some rpinrxx and rpor registers with pps+ but the contents of these registers just don't change :

    pps+ \ unlock the pps matrix
    $3f0d rpinr20 ! \ miso on rp13 is input on spi1 (rp13 = RB13)
    $0807 rpor7 ! \ mosi =function 7 , sck is function 8
    pps- \ relock the matrix

    this piece of code (and more is inside a colon defenition
    What am I doing wrong here ?

    Regards,
    Ronny

     
    👍
    1
  • Mikael Nordman

    Mikael Nordman - 2024-03-24

    Do you have this config bit OFF? It was ON in git.

    #pragma config IOL1WAY = OFF
    
     
    👍
    1
  • ronny suy

    ronny suy - 2024-03-25

    Hi Mikael ,
    Thanks for the info.
    It was indeed on , programmed it to off , and now it works.
    Thanks !
    Regards,
    Ronny

     

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.