4d Systems 7.0" DIABLO16 Intelligent Display $LCD-70DT uLCD-70DT データシート

製品コード
uLCD-70DT
ページ / 23
4D SYSTEMS                                                                       uLCD-70DT Display Module 
 
 
 © 2014 4D SYSTEMS                       Page 12 of 23                    www.4dsystems.com.au 
 
uLC
D
-7
0
DT
 Di
spl
ay 
Mo
du
le
 
however vary, and the DIABLO16 PWM control can 
be adjusted to suit most applications. 
 
Simple Mode allows a percentage input value with 
resolution  of  0.1%,  which  runs  at  a  frequency  of 
approximately 70KHz. 
To  enable  the  PWM  output  on  a  GPIO  pin,  the 
following 4DGL function is used: 
 
PWM_Init(pin, mode, value);    
  
 
Where  ‘pin’  is  the  GPIO  compatible  with  the 
particular pin function, ‘mode’ is the type of PWM 
to  generate,  and  ‘value’  is  the  parameter  which 
defined the PWM pulse itself. 
 
Please  refer  to  the  separate  document  titled 
'DIABLO16-4DGL-Internal-Functions.pdf'  for  more 
information  on  how  to  use  the  PWM  functions, 
along  with  the  separate  document  titled 
DIABLO16-Processor-Datasheet-REVx.x.pdf’. 
 
Pin Counter 
4.9.
 
There  are  6  Pin  Counter  channels  available  to  be 
configured  by  the  user,  used  to  count  incoming 
pulses  with  the  ability  to  call  a  user  function  on 
overflow. The Pin Counter function is available for 
use in a variety of modes. 
 
The counters can be read and written at any time. 
 
Please  refer  to  the  table  in  section  4.4  ‘Alternate 
Pin  Functions  –  Overview’  for  details  on  which 
GPIO can be configured for this. 
 
To enable the Pin Counter function on a GPIO pin, 
the following 4DGL function is used: 
 
pin_Counter(pin, mode, OVFfunction); 
 
Where  ‘pin’  is  the  GPIO  pin  compatible  with  this 
particular  function,  ‘mode’  is  the  type  of  trigger 
used to count  on  such as Rising/Falling/Edge, and 
‘OVFfunction’ is the user function to call when the 
counter overflows, if desired. 
 
Please  refer  to  the  separate  document  titled 
'DIABLO16-4DGL-Internal-Functions.pdf'  for  more 
information  on  how  to  use  the  Pin  Counter 
functions, along with the separate document titled 
DIABLO16-Processor-Datasheet-REVx.x.pdf’. 
 
 
 
 
Quadrature In 
4.10.
 
There are two Quadrature Input channels available 
on the DIABLO16 processor, which requires 2 GPIO 
pins each. 
 
Please refer to the table on the previous page for 
details  on  which  GPIO  can  be  configured  for 
Quadrature Input. 
Quadrature  Input  allows  a  quadrature  encoder  to 
be connected, and the position counter and delta 
counter can be read at any time. 
 
To enable the Quadrature Input  function on a  set 
of GPIO pins (2 pins required), the following 4DGL 
function is used: 
 
Qencoderx(PHApin, PHBpin, mode); 
 
Where ‘Qencoderx’ is substituted for Quencoder1 
or  Quencoder2  accordingly,  ‘PHApin’  is  the  pin 
connected to the A Phase of the Encoder, ‘PHBpin’ 
is the pin connected to the B Phase of the Encoder, 
and ‘mode’ is not currently used so is to be set to 
zero (0).  
 
Please  refer  to  the  separate  document  titled 
'DIABLO16-4DGL-Internal-Functions.pdf'  for  more 
information  on  how  to  use  the  Quadrature  Input 
functions, along with the separate document titled 
DIABLO16-Processor-Datasheet-REVx.x.pdf’. 
 
 
Analog Inputs 
4.11.
 
Please  refer  to  the  table  in  section  4.2  for  details 
on  which  GPIO  can  be  configured  to  be  analog 
inputs. 
 
The  analog  inputs  on  the  DIABLO16  have  a  range 
of 0 to 3.3V, each with a max resolution of 12-bits. 
 
The analog inputs can be read using three modes, 
standard  mode,  averaged  mode  or  high  speed 
mode. 
 
Standard  Mode  results  in  a  sample  being 
immediately  read.  Standard  Mode  can  read  over 
40000 values per second. Operates at 12-bit. 
 
Averaged  Mode  results  in  a  16  sample  being 
immediately  read  and  their  average  returned. 
Averaged  Mode  can  read  approximately  20000 
values per second. Operates at 12-bit. 
 
Highspeed Mode  collects a  user  specified number 
of samples at a  user specified rate/frequency and