LCD Experiment Study Notes (3): WATCH DOG

Publisher:BlissfulJourneyLatest update time:2023-06-15 Source: elecfansKeywords:LCD Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

  The watchdog is used to prevent the program from running away. The program should feed the dog regularly. If the program runs away, it won't feed the dog. If the time to feed the dog is exceeded, the dog will generate a signal to reset the CPU. General programs do not require this mechanism, but this mechanism is required in special circumstances.

  The watchdog is enabled by default. The dog counts down by itself and then automatically restarts the CPU.


 

/* WATCH DOG register watchdog register*/
#define WTCON (*(volatile unsigned long *)0x53000000)
#define WTDAT (*(volatile unsigned long *)0x53000004)
#define WTCNT (*(volatile unsigned long *)0x53000008)

void disable_watch_dog(void)

{

  WTCON=0; //Set the WTCON value of the watchdog control register to 0 to turn off the watchdog.

}


Keywords:LCD Reference address:LCD Experiment Study Notes (3): WATCH DOG

Previous article:LCD Experiment Study Notes (4): System Clock
Next article:LCD experiment study notes (2): head.S

Recommended ReadingLatest update time:2024-11-15 21:39

LCD12864 based on 51 single chip microcomputer
Note: Lower versions of Keil software cannot be compiled successfully because they cannot handle floating-point operations. #include reg52.h #include intrins.h   #define uint unsigned int #define uchar unsigned char #define noACK 0 #define ACK   1             #define STATUS_REG_W 0x06   #define STATU
[Microcontroller]
STM32 Series Chapter 14 - TFTLCD Driving Principle
ALINETEK 2.8 inch TFT LCD module features 240*320 resolution 16-bit true color display (65536 colors) Built-in resistive touch screen Built-in backlight circuit  Note: The module is powered by 3.3V and does not support 5V MCU. If it is a 5V MCU, a 120R resistor must be connected in series to the signal line. ALI
[Microcontroller]
STM32 Series Chapter 14 - TFTLCD Driving Principle
Apple Watch straps may come with panoramic or 3D cameras
         You can't bend a lens without destroying its optical properties. But you can have a series of camera lenses on a flexible surface, and by bending that housing, you get a combined panoramic, or 3D image. Apple is working on how to use multiple cameras in a flexible housing for devices like the Apple Watch band
[Mobile phone portable]
Apple Watch straps may come with panoramic or 3D cameras
LCD device driver in Linux (2) - based on s3c6410 platform
The previous article talked about the relevant knowledge of framebuffer frame buffer. This article will specifically talk about the implementation of LCD driver. 1. The LCD device driver exists as a platform device in the Linux kernel, so I have to say what I have said many times. int __devinit s3cfb_init(void) {
[Microcontroller]
LG has stopped producing LCD screens for Apple's iPhone
      According to 9To5Mac, citing supply chain reports, LG Display has stopped producing LCD iPhone screens and has given up hope of future production. In addition, LG Display said it may stop producing its own smartphones.   9To5Mac notes that LG continues to produce LCD screens for Apple's older iPhones, but a re
[Mobile phone portable]
The use of common functional modules of single chip microcomputer Part 7. LCD 1602
1. Basic knowledge: ①. It seems to be written as LCM 1602. I personally feel that it is the same thing as LCD 1602, but may be called differently. ②. LCD 1602 is essentially a "character liquid crystal" that is used to display letters, numbers, and symbols, and is basically not used to display Chinese characters.
[Microcontroller]
The use of common functional modules of single chip microcomputer Part 7. LCD 1602
Unveiling the specs of Apple Watch S6/5/3 and Watch SE
       At the fall new product launch conference held at 1 a.m. today, Apple officially released two smart watches, Apple Watch Series 6 and Apple Watch SE. If you plan to buy an Apple Watch in the near future, how should you choose? The new model or the Series 5 released last year? Or the cheapest Series 3? How big i
[Mobile phone portable]
Unveiling the specs of Apple Watch S6/5/3 and Watch SE
JDI is on the verge of death and is seeking a bank group to extend the financing period
According to a report by Kyodo News, in order to provide financial assistance to JDI, a Japanese small and medium-sized LCD panel manufacturer that is undergoing operational reconstruction, three major correspondent banks, including Mizuho Bank, Sumitomo Mitsui Banking Corporation and Sumitomo Mitsui Trust Bank, will
[Embedded]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号