Fujitsu Series 3 Manual
Here you can view all the pages of manual Fujitsu Series 3 Manual. The Fujitsu manuals for Controller are available online for free. You can easily download all the documents as PDF.
Page 661
3. Operations Explanation of operation modes 8-bit PPG operation mode One channel can operate as 8-bit PPG independently. 16-bit PPG operation mode Two channels are combined, and the comb ined channel operates as 16-bit PPG. 8+8-bit PPG operation mode In this mode, it needs two PPGs. One channel operates as an 8-bit prescaler. Another channel operates as 8-bit PPG timer. The borrow output of prescaler is counted, and allows 8-bit PPG pulse in any cycle. 16+16-bit PPG...
Page 662
3. Operations Selecting the count clock The count clocks to be used are PCLK clocks, and can be selected from one of the following four types of count clock inputs. The count clock operates as shown on Ta b l e 3 - 2. Table 3-2 Count clock selection PCS1 PCS0 Count clock operation 0 0 The Count Clock is counted for PCLK cycle. 0 1 The Count Clock is counted for 4 cycles of PCLK. 1 0 The Count Clock is counted for 16 cycles of PCLK. 1 1 The Count Clock is counted for 64 cycles of...
Page 663
3. Operations Figure 3-2 An example of PPG operation by GATE signal from the multifunction timer GATE signal of multifunction timer PPG Count cycle StartStop PPG Count cycle Start Stop EDGE=0 (Start at rising edge, and stop at falling edge) PPG output GATE signal of multifunction timer PPG Count cycle Start Stop PPG Count cycle StartStop EDGE=1 (Start at falling edge, and stop at rising edge) PPG output 1. PPG continues output operation during the GATE signal is active. 2. After LOW...
Page 664
3. Operations 3.2. Timing generator circuit operations The Timing generator circuit compares its built-in, 8-bit UP counter value with the 8-bit compare register value, and generates/outputs a start trigger signal of PPG Timer when they match. If a compare register is set for each PPG timer, multiple PPG timers can be synchronized and they can be started with a delay of each PPG start timing. A delay period can be set by the four compare registers relating to each PPG channel. The 8-bit...
Page 665
3. Operations Figure 3-4 gives an example of Timing Generator compare startup. Figure 3-4 An example of timing generator compare startup 8-bit up counter Count cycle MONI=1 Count starts if STR=1. F0H A0H 80H 40H F0H A0H 80H 40H COMP6 COMP4 COMP2 COMP0 PPG6TG PPG4TG PPG2TG PPG0TG TRG0O=0, TRG2O=0 COMP0 matching COMP2 matching COMP4 matching COMP6 matching TRG4O=0, TRG6O=0 PPG0 output PPG2 output PPG4 output PPG6 output 1. When TTCR.STR=1 is set, the 8-bit UP counter starts counting....
Page 666
4. Setup Procedure Example 4. Setup Procedure Example This section explains a setting procedure example of PPG. PPG function setup procedure (example) FUJITSU SEMICONDUCTOR LIMITED Sta r t Access to the PPGC register. Set an operation mode, interrupt, and clocks. Do you stop the PPG? GATEC.STRG=0 GATEC.STRG=1 End Timing Generator Circuit: Go to the Start Trigger Setting section (below). PPGC.TTRG=0 Register: Set a start trigger. PPGC.TTRG=1 Access to the GATEC register. Set...
Page 667
4. Setup Procedure Example Timing generator circuit setup procedure (example) FUJITSU SEMICONDUCTOR LIMITED Do you stop the PPG? Timing Generator Circuit: Set a start tri gger. Access to the TTCR register. Set a Compare clock. End Access to the COMP register. Set a Compare Register value. Ye s TTCR.MONI=0? No Access to the TTCR register. Enable PPG operation. (STR=1) The PPG starts. (Operation) Ye s No Access to the TTCR register. Stop the PPG start trigger. (TRGnO=0) Access...
Page 668
5. Registers 5. Registers This section explain the registers of PPG. Ta b l e 5 - 1 lists and explains PPG Registers. Table 5-1 PPG Register list Abbreviation Register name See TTCR0 PPG Start Trigger Control Register 0 5.1 TTCR1 PPG Start Trigger Control Register 1 5.2 COMP0 PPG Compare Register 0 COMP1 PPG Compare Register 1 COMP2 PPG Compare Register 2 COMP3 PPG Compare Register 3 COMP4 PPG Compare Register 4 COMP5 PPG Compare Register 5 COMP6 PPG Compare Register 6 COMP7 PPG...
Page 669
5. Registers Abbreviation Register name See PRLH3 PPG Reload Register H3 PRLL3 PPG Reload Register L3 PRLH4 PPG Reload Register H4 PRLL4 PPG Reload Register L4 PRLH5 PPG Reload Register H5 PRLL5 PPG Reload Register L5 PRLH6 PPG Reload Register H6 PRLL6 PPG Reload Register L6 PRLH7 PPG Reload Register H7 PRLL7 PPG Reload Register L7 PRLH8 PPG Reload Register H8 PRLL8 PPG Reload Register L8 PRLH9 PPG Reload Register H9 PRLL9 PPG Reload Register L9 PRLH10 PPG Reload Register H10...
Page 670
5. Registers 5.1. PPG Start Trigger Control Register 0 (TTCR0) The TTCR0 Register controls a start of PPG0/PPG2/PPG4/PPG6 Register. Register configuration Bit 15 14 13 12 11 10 9 8 Field TRG6O TRG4O TRG2O TRG0O CS01 CS00 MONI0 STR0 Attribute R/W R/W R/W R/W R/W R/W R R/W Initial value 1b1 1b1 1b1 1b1 1b0 1b0 1b0 1b0 Bit 7 6 5 4 3 2 1 0 Field Reserved Attribute - Initial value - Register functions [Bits 15:12] TRG6O, TRG4O, TRG2O, TRG0O: PPG trigger stop...
All Fujitsu manuals