Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4928

PSoC 4 Real-Time Clock

$
0
0
Hello

frustrated, I need help in Programming . I have psoc 4200 device. when I burn below code. I see the current time and date on LCD
Code (Text):
  1. */
  2. #include <project.h>
  3. #include <stdio.h>
  4.  
  5. /* Time: 02:59:50 */
  6. #define TIME_HOUR           (0x23u)
  7. #define TIME_MIN            (0x59u)
  8. #define TIME_SEC            (0x55u)
  9. #define TIME_HR_MIN_SEC     ((uint32)(TIME_HOUR << RTC_HOURS_OFFSET) | \
  10.                             (uint32)(TIME_MIN << RTC_MINUTES_OFFSET)    | \...
PSoC 4 Real-Time Clock

Viewing all articles
Browse latest Browse all 4928

Trending Articles