Sheet adding up to peaceful piece the project of machine how
Sheet adding up to peaceful piece machine it is Taiwan chip, compositive development environment is HT-3000. The mainland the chip agent here is limited company of Cheng Qun semiconductor, the program on government-owned net is used exemple write by collection, very good to C language also of course support, it is the subclass of standard C. What use in the job is 8 HT48R006, in developing a process, need notices when:
1, there is relevant configuration in HT-3000, include the option of clock, the function of pin is configured, of watchdog make can, the means of the instruction that feed a dog of watchdog.
2, register just supports those who find site, after including corresponding head file, can use a relevant indicative symbol.
3, when systematic clock configuration is in-house clock, PA5, PAG brings a foot to use as common I0, if use exterior clock, cite a base as exterior clock input.
4, the means feeding a dog of watchdog can be configured for two kinds of means, if configure mode of the instruction that it is sheet, need Cinwdt() to dictate only can timer of to clear watchdog, if configuration is double instruction model 4. Need Clrwdt1() and Clrwdt2() to appear in code in couples paragraph ability implementation is operated to the to clear of watchdog timer.
5, Ht48r006. Two interrupt vector entrance address, exterior interrupt 0 interrupt with timer.
6, ht48r006 natural resources is limited, the program stores the space is 1K, 2 class stack, among them Main() function does not take up stack number of plies. 5
7, when use HT-3000 develops a tool, if use C to write code, when defining global variable, cannot tax initiative value, when statement is constant only ability taxes initiative value.