Fujitsu FR60 Computer Hardware User Manual


  Open as PDF
of 1038
 
903
Chapter 44 A/D Converter
6.Q & A
* Analogue input channels AN14 and AN15 can be also used as D/A converter outputs. In case of exclusive A/D converter
usage do not enable the D/A converter output with DACR.DAE[1:0] since this has priority over A/D converter input. See
chapter “D/A Converter (Page No.909)” for further information about D/A converter.
6.5 How do I enable analog pin input for Stepper Motor Controller?
Use Port Function register PFR and Extra Port Function register EPFR.
See chapter “Stepper Motor Controller (Page No.871)” about using the A/D converter for SMC operation.
6.6 To select how to activate the A/D converter
There are three types of activation triggers:
Software trigger
Reload timer rising signal
External trigger input falling signal
To set an activation trigger, use Activation Trigger Selection bits (ADCS.STS[1: 0]).
To program the AN18 pin as an input PFR27.2 = ‘1’ EPFR27.2 = ‘1’
To program the AN19 pin as an input PFR27.3 = ‘1’ EPFR27.3 = ‘1’
To program the AN20 pin as an input PFR27.4 = ‘1’ EPFR27.4 = ‘1’
To program the AN21 pin as an input PFR27.5 = ‘1’ EPFR27.5 = ‘1’
To program the AN22 pin as an input PFR27.6 = ‘1’ EPFR27.6 = ‘1’
To program the AN23 pin as an input PFR27.7 = ‘1’ EPFR27.7 = ‘1’
To program the AN24 pin as an input PFR26.0 = ‘1’ EPFR26.0 = ‘1’
To program the AN25 pin as an input PFR26.1 = ‘1’ EPFR26.1 = ‘1’
To program the AN26 pin as an input PFR26.2 = ‘1’ EPFR26.2 = ‘1’
To program the AN27 pin as an input PFR26.3 = ‘1’ EPFR26.3 = ‘1’
To program the AN28 pin as an input PFR26.4 = ‘1’ EPFR26.4 = ‘1’
To program the AN29 pin as an input PFR26.5 = ‘1’ EPFR26.5 = ‘1’
To program the AN30 pin as an input PFR26.6 = ‘1’ EPFR26.6 = ‘1’
To program the AN31 pin as an input PFR26.7 = ‘1’ EPFR26.7 = ‘1’
Operation PFR setting EPFR setting
To program the AN16 pin as an input for SMC1P0 PFR27.0 = ‘1’ EPFR27.0 = ‘0’
To program the AN17 pin as an input for SMC1M0 PFR27.1 = ‘1’ EPFR27.1 = ‘0’
To program the AN18 pin as an input for SMC2P0 PFR27.2 = ‘1’ EPFR27.2 = ‘0’
To program the AN19 pin as an input for SMC2M0 PFR27.3 = ‘1’ EPFR27.3 = ‘0’
To program the AN20 pin as an input for SMC1P1 PFR27.4 = ‘1’ EPFR27.4 = ‘0’
To program the AN21 pin as an input for SMC1M1 PFR27.5 = ‘1’ EPFR27.5 = ‘0’
To program the AN22 pin as an input for SMC2P1 PFR27.6 = ‘1’ EPFR27.6 = ‘0’
To program the AN23 pin as an input for SMC2M1 PFR27.7 = ‘1’ EPFR27.7 = ‘0’
To program the AN24 pin as an input for SMC1P2 PFR26.0 = ‘1’ EPFR26.0 = ‘0’
To program the AN25 pin as an input for SMC1M2 PFR26.1 = ‘1’ EPFR26.1 = ‘0’
To program the AN26 pin as an input for SMC2P2 PFR26.2 = ‘1’ EPFR26.2 = ‘0’
To program the AN27 pin as an input for SMC2M2 PFR26.3 = ‘1’ EPFR26.3 = ‘0’
To program the AN28 pin as an input for SMC1P3 PFR26.4 = ‘1’ EPFR26.4 = ‘0’
To program the AN29 pin as an input for SMC1M3 PFR26.5 = ‘1’ EPFR26.5 = ‘0’
To program the AN30 pin as an input for SMC2P3 PFR26.6 = ‘1’ EPFR26.6 = ‘0’
To program the AN31 pin as an input for SMC2M3 PFR26.7 = ‘1’ EPFR26.7 = ‘0’
A/D Activation Trigger
Activation Trigger Selection bit
(STS[1: 0])