• AVR Freaks

Hot!技术工程师, 我想在PIC16F19197这建立实时程序,RTCC,怎么样导入,设置RTCC,或编程? -- Hornifan 13433402072

Author
Hornifan
New Member
  • Total Posts : 7
  • Reward points : 0
  • Joined: 2019/01/14 05:36:20
  • Location: 0
  • Status: offline
2020/02/20 19:12:43 (permalink)
0

技术工程师, 我想在PIC16F19197这建立实时程序,RTCC,怎么样导入,设置RTCC,或编程? -- Hornifan 13433402072

 
技术工程师,
 
我想在PIC16F19197这建立实时程序,RTCC,怎么样导入,设置RTCC,或编程?
 
 就是PIC16F19197, 怎么样开始用RTCC?
 
 
 
 
 
--
Hornifan 
 
13433402072
 
 





 
#1

14 Replies Related Threads

    ric
    Super Member
    • Total Posts : 27716
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: 技术工程师, 我想在PIC16F19197这建立实时程序,RTCC,怎么样导入,设置RTCC,或编程? -- Hornifan 1343340207 2020/02/20 19:23:03 (permalink)
    +1 (1)
    I don't know how many Chinese speakers we have here.
    Google translates this as:

    Technical Engineer,
     
    I want to build a real-time program, RTCC in PIC16F19197, how to import, set RTCC, or program?
     
      It's PIC16F19197. How to start using RTCC?

     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #2
    ric
    Super Member
    • Total Posts : 27716
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: 技术工程师, 我想在PIC16F19197这建立实时程序,RTCC,怎么样导入,设置RTCC,或编程? -- Hornifan 1343340207 2020/02/20 19:24:55 (permalink)
    +1 (1)
    Have you read through chapter "24.0 REAL-TIME CLOCK AND CALENDAR (RTCC)" in the PIC16F19195/6/7 datasheet?
    Is there a part you don't understand?
     
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #3
    Hornifan
    New Member
    • Total Posts : 7
    • Reward points : 0
    • Joined: 2019/01/14 05:36:20
    • Location: 0
    • Status: offline
    Re: 技术工程师, 我想在PIC16F19197这建立实时程序,RTCC,怎么样导入,设置RTCC,或编程? -- Hornifan 1343340207 2020/02/20 19:28:07 (permalink)
    0
    I am using PIC16F19197, 
     
    Could you send the PDF of RTCC link to me?
    #4
    ric
    Super Member
    • Total Posts : 27716
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: 技术工程师, 我想在PIC16F19197这建立实时程序,RTCC,怎么样导入,设置RTCC,或编程? -- Hornifan 1343340207 2020/02/20 19:45:57 (permalink)
    +1 (1)
    It's a chapter in the PIC16F19197 datasheet.
    http://ww1.microchip.com/...40001873D.pdf#page=346
    ww1.microchip.com/downloads/en/DeviceDoc/PIC16LF19195-6-7-Data-Sheet-40001873D.pdf#page=346


    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #5
    Hornifan
    New Member
    • Total Posts : 7
    • Reward points : 0
    • Joined: 2019/01/14 05:36:20
    • Location: 0
    • Status: offline
    Re: 技术工程师, 我想在PIC16F19197这建立实时程序,RTCC,怎么样导入,设置RTCC,或编程? -- Hornifan 1343340207 2020/02/20 20:06:08 (permalink)
    0
    Thanks, And my questions, If I have made the MCU sleep on 2020-02-07-12:00:08, It is sleeping and in dozen mode, Could I awake it by real clock, when 2020-02-27-12:00:00?
     
    By What command to awake it? Could you show me an example?
    #6
    jtemples
    عُضْوٌ جَدِيد
    • Total Posts : 11895
    • Reward points : 0
    • Joined: 2004/02/13 12:31:19
    • Location: Southern California
    • Status: offline
    Re: 技术工程师, 我想在PIC16F19197这建立实时程序,RTCC,怎么样导入,设置RTCC,或编程? -- Hornifan 1343340207 2020/02/20 20:15:59 (permalink)
    +1 (1)
    If you open the data sheet and go to the page ric suggested, then type control-F and then type wake, you will have your answer.
    #7
    Hornifan
    New Member
    • Total Posts : 7
    • Reward points : 0
    • Joined: 2019/01/14 05:36:20
    • Location: 0
    • Status: offline
    Re: 技术工程师, 我想在PIC16F19197这建立实时程序,RTCC,怎么样导入,设置RTCC,或编程? -- Hornifan 1343340207 2020/02/20 23:05:53 (permalink)
    0
     I  Didnot understand below 2. and 3. about BOR and POR.....
     
    please help to tell the BOR and POR , and interrrupt for wake.
     
    Could I call you?  My mobile is 13433402072
     
    Urgent
     
    ----
    REGISTER 14-33: TRISE: PORTE TRI-STATE REGISTER
    R/W-1/1 R/W-1/1 R/W-1/1 R/W-1/1 R/W-1/1 U-0 R/W-1/1 R/W-1/1
    TRISE7 TRISE6 TRISE5 TRISE4 TRISE3 — TRISE1 TRISE0
    bit 7 bit 0
    Legend:
    R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
    u = Bit is unchanged x = Bit is unknown -n/n = Value at POR and BOR/Value at all other Resets
    ‘1’ = Bit is set ‘0’ = Bit is cleared
     
     
    ----------------------------
     
    WAKE-UP FROM SLEEP
    The device can wake-up from Sleep through one of the
    following events:
    1. External Reset input on MCLR pin, if enabled.
    2. BOR Reset, if enabled.
    3. POR Reset.
    4. Watchdog Timer, if enabled.
    5. Any external interrupt.
    6. Interrupts by peripherals capable of running
    during Sleep (see individual peripheral for more
    information).
     
     
    #8
    ric
    Super Member
    • Total Posts : 27716
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: 技术工程师, 我想在PIC16F19197这建立实时程序,RTCC,怎么样导入,设置RTCC,或编程? -- Hornifan 1343340207 2020/02/20 23:12:04 (permalink)
    +2 (2)
    Have you EVER worked on a PIC before? It seems like you know nothing about the basics.
    BOR = Brown Out Reset
    POR = Power On Reset.
    These have nothing to do with using the RTCC to wake up the PIC.
    That comes under "6. Interrupts by peripherals capable of running during Sleep"
     

    Could I call you?  My mobile is 13433402072

    This is a user to user forum. We are not Microchip employees.
    We are not paid to provide live support. (We are not paid at all).
    Asking for personal email or phone details is a quick way to make sure that no-one will help you!
     
    If you want help directly from Microchip, open a "Support Case" at http://microchip.com/support
    Do note that will take many days to get an answer though.
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #9
    Hornifan
    New Member
    • Total Posts : 7
    • Reward points : 0
    • Joined: 2019/01/14 05:36:20
    • Location: 0
    • Status: offline
    Re: 技术工程师, 我想在PIC16F19197这建立实时程序,RTCC,怎么样导入,设置RTCC,或编程? -- Hornifan 1343340207 2020/02/20 23:25:25 (permalink)
    0
    Dear,  I am very junior, and use other Chip before.
     
    Could you help and tell me the example of its source code about:
     
    have made the MCU sleep on 2020-02-07-12:00:08, It is sleeping and in dozen mode, Could I awake it by real clock, when 2020-02-27-12:00:00?
     
    By what ways to wake it? and how to set in MCC? because MCC looks NO RTCC settings.
     
    #10
    1and0
    Access is Denied
    • Total Posts : 10914
    • Reward points : 0
    • Joined: 2007/05/06 12:03:20
    • Location: Harry's Gray Matter
    • Status: offline
    Re: 技术工程师, 我想在PIC16F19197这建立实时程序,RTCC,怎么样导入,设置RTCC,或编程? -- Hornifan 1343340207 2020/02/20 23:33:40 (permalink)
    +1 (1)
    First, I have never used the PIC16F19197 before. A quick look thru the RTCC chapter in the PIC datasheet reveals:

    24.4 Sleep Mode
    The timer and alarm continue to operate while in Sleep
    mode. The operation of the alarm is not affected by
    Sleep, as an alarm event can always wake-up the
    CPU. Idle mode does not affect the operation of the
    timer or alarm


    24.2.2 ALARM INTERRUPT
    At every alarm event, an interrupt is generated and the
    RTCCIF bit is set. Additionally, an alarm pulse output is
    provided that operates at half the frequency of the
    alarm.
    The alarm pulse output is completely synchronous with
    the RTCC clock and can be used as a trigger clock to
    other peripherals.

     
    So, read the RTCC chapter and learn how to set the timer and alarm. No one here will write the code for you.
    #11
    Hornifan
    New Member
    • Total Posts : 7
    • Reward points : 0
    • Joined: 2019/01/14 05:36:20
    • Location: 0
    • Status: offline
    Re: 技术工程师, 我想在PIC16F19197这建立实时程序,RTCC,怎么样导入,设置RTCC,或编程? -- Hornifan 1343340207 2020/02/20 23:40:26 (permalink)
    0
    ,  1. In MCC, no use at RTCC, correct? we donot need to set anything in MCC for RTCC , right?
     
     
    #12
    1and0
    Access is Denied
    • Total Posts : 10914
    • Reward points : 0
    • Joined: 2007/05/06 12:03:20
    • Location: Harry's Gray Matter
    • Status: offline
    Re: 技术工程师, 我想在PIC16F19197这建立实时程序,RTCC,怎么样导入,设置RTCC,或编程? -- Hornifan 1343340207 2020/02/20 23:44:02 (permalink)
    +1 (1)
    Hornifan
    ,  1. In MCC, no use at RTCC, correct? we donot need to set anything in MCC for RTCC , right?

    I don't know because I don't use MCC. Instead, I'd read the PIC datasheet. ;)
    #13
    katela
    Super Member
    • Total Posts : 1815
    • Reward points : 0
    • Joined: 2013/06/11 05:25:18
    • Location: South Africa
    • Status: online
    Re: 技术工程师, 我想在PIC16F19197这建立实时程序,RTCC,怎么样导入,设置RTCC,或编程? -- Hornifan 1343340207 2020/02/21 03:00:00 (permalink)
    +1 (1)
    Are you able to do some basics with PIC like blinking an LED with or without MCC? You will need to understand the basics before you can use the RTCC.

    Free online Microcontroller Tutorials and Projects for Hobbyists and students. From beginners to advanced. Website: www.studentcompanion.co.za
    YouTube Tutorials: https://www.youtube.com/StudentCompanionSA
    #14
    dan1138
    Super Member
    • Total Posts : 3644
    • Reward points : 0
    • Joined: 2007/02/21 23:04:16
    • Location: 0
    • Status: offline
    Re: 技术工程师, 我想在PIC16F19197这建立实时程序,RTCC,怎么样导入,设置RTCC,或编程? -- Hornifan 1343340207 2020/02/21 14:40:31 (permalink)
    +2 (2)
    Hornifan
    ,  1. In MCC, no use at RTCC, correct? we do not need to set anything in MCC for RTCC , right?

    Most of the members here do not use the MCC tool for useful work.
     
    The MCC tool makes code that is so complex that anyone new to PIC controllers gets confused.
     
    Another issue is that MPLABX does not have a simulation model for the RTCC module in the PIC16F19197 controller.
     
    Attached is a project created with the MCC tool from MPLABX v5.25
     
    As there is no simulator support and I do not have a PIC16F19197 controller to test it, this code may not work.
     
    Please let us know what happens for you.
    post edited by dan1138 - 2020/02/22 10:15:59
    #15
    Jump to:
    © 2020 APG vNext Commercial Version 4.5