The internal reference voltage Vinternal R is built by series resistance to provide different level of reference voltage, bit 4 and bit 5 of gpcs register are used to select the maximum and minimum values of Vinternal R and bit [3:0] of gpcs register are used to select one of the voltage level which is deivided-by-16 from the defined maximum level to minimum level. Fig. 20 to Fig. 23 shows four conditions to have different reference voltage Vinternal R. By setting the gpcs register, the internal reference voltage Vinternal R can be ranged from (1/32)*VDD to (3/4)*VDD
Comparator Interrupt Operation
Interrupt request flag intrq.4 will be set to request interrupt service whenever the rising edge of comparator output gpcc.6 is detected, this interrupt request flag will be latched until cleared by software via intrq register. The interrupt service routine handling is similar to other interrupt request lines.
Synchronizing Comparator Output to Timer2
The comparator output can be synchronized with Timer2 by setting gpcc.5=1. When enabled, the comparator output is sampled by the rising edge of Timer2 clock source (TM2_CLK). If the pre-scalar function is used with Timer2, the comparator output is sampled after the pre-scaling and scaling functions, Please refer to Fig. 10 Timer2 hardware diagram and Fig. 15 Comparator hardware diagram, TM2_CLK is the clock source after pre-scaling and scaling functions, and will be sent to Timer2 counter for counting and comparator for sampling clock.
Application industry
The products can be used in the following industries: power plant, paper making, steel, mining, rubber, water supply, cement, chemical industry, glass, printing
Textile, machinery, plastics, coatings, medicine, hospitals, food, hotels, scientific research institutions
This article from the temporal Ming sheng automation equipment co., LTD., reproduced please attach this link: http://www.stockdcs.com/