+ Post New Thread
Results 1 to 3 of 3
  1. #1
    Newbie level 5
    Points: 101, Level: 1

    Join Date
    May 2019
    Posts
    9
    Helped
    0 / 0
    Points
    101
    Level
    1

    Sleep mode - dspic33ch128mp508

    Hi,

    I would like to know how I can setup the sleep mode function on dspic33ch128mp508 curiosity development board. Is there a register setup or can I use the sleep function for this chip. I am using MPLAB IDE X 5.10 and XC16 compiler. Any help please. Thank you

    •   AltAdvertisement

        
       

  2. #2
    Super Moderator
    Points: 29,553, Level: 41
    andre_teprom's Avatar
    Join Date
    Nov 2006
    Location
    Brazil
    Posts
    8,820
    Helped
    1114 / 1114
    Points
    29,553
    Level
    41
    Blog Entries
    9

    Re: Sleep mode - dspic33ch128mp508

    Is there a register setup or can I use the sleep function for this chip
    Didn't you find anything on instructions set of the compiler datasheet like that ?

    Code:
    sleep();
    With a quick search on the Web I could easlily find the assembly instruction that do the same:

    Code:
    PWRSAV #0
    By the way, had you even read FvM remark on the other thread asking you to confirm whether you are realy using MPLAB, or MPLABX IDE instead ?

    I am using MPLAB IDE X 5.10 and XC16 compiler
    --------------------------------------------------------------------------------------------------
    Part of the world that you live in, You are the part that you're giving ( Renaissance )


    1 members found this post helpful.

    •   AltAdvertisement

        
       

  3. #3
    Super Moderator
    Points: 258,547, Level: 100
    Awards:
    1st Helpful Member

    Join Date
    Jan 2008
    Location
    Bochum, Germany
    Posts
    45,137
    Helped
    13722 / 13722
    Points
    258,547
    Level
    100

    Re: Sleep mode - dspic33ch128mp508

    Perhaps we can paraphrase the question:

    Is it reasonable to start system level microcontroller programming without studying the datasheet thoroughly and understanding the specific CPU functions?


    1 members found this post helpful.

--[[ ]]--