Diamond Systems PR-Z32-E-ST, PR-Z32-EA-ST user manual Base + Write Counter/Timer Control Register

Page 43

Base + 15

Write

Counter/Timer Control Register

 

 

 

 

 

 

 

 

 

 

 

 

Bit No.

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

Name

CTRNO

LATCH

GTDIS

GTEN

CTDIS

CTEN

LOAD

CLR

 

 

 

 

 

 

 

 

 

This register is used to control the counter/timers. A counter is selected with bit 7, and then a 1 is written to any ONE of bits 6 – 0 to select the desired operation for that counter. The other bits and associated functions are not affected. Thus only one operation can be performed at a time.

CTRNO

Counter no., 0 or 1

LATCH

Latch the selected counter so that its value may be read. The counter must be

 

latched before it is read. Reading from registers 12-14 returns the most recently

 

latched value. If you are reading Counter 1 data, read only Base + 12 and Base + 13.

 

Any data in Base + 14 will be from the previous Counter 0 access.

GTDIS

Disable external gating for the selected counter.

GTEN

Enable external gating for the selected counter. If enabled, the associated gate

 

signal GATE0 or GATE1 controls counting on the counter. If the GATEn signal is

 

high, counting is enabled. If the GATEn signal is low, counting is disabled.

CTDIS

Disable counting on the selected counter. The counter will ignore input pulses.

CTEN

Enable counting on the selected counter. The counter will decrement on each input

 

pulse.

LOAD

Load the selected counter with the data written to Base + 12 through Base + 14 or

 

Base + 12 and Base + 13 (depending on which counter is being loaded).

CLR

Clear the current counter (set its value to 0).

To load a counter: First write the load value to Base + 12 and Base + 13 (for Counter 1) or Base

+12 through Base + 14 (for Counter 0). Then write a Load command to Base + 15. For example, to load Counter 0 with the hex value 123456:

Write 0x12 to Base + 14 (these three bytes can be written to in any order)

Write 0x34 to Base + 13

Write 0x56 to Base + 12

Write 0x02 to Base + 15 to load counter 0

To enable counting: Write 0x04 (ctr 0) or 0x84 (ctr 1) to Base + 15.

To stop counting: Write 0x08 (ctr 0) or 0x88 (ctr 1) to Base + 15.

To read a counter: First latch it, then read the value:

Write 0x40 to Base + 15 to latch counter 0 or 0xC0 to latch counter 1

Read LSB from Base +12

Read Middle Byte from Base + 13

Read MSB from Base + 14

Assemble 3 bytes into the current counter value

More complete counter programming operations are provided in chapter 20 on page 59.

Prometheus CPU User Manual V1.44

Page 43

Image 43
Contents Prometheus Table of Contents 22.4 22.2CPU DescriptionSystem Features FeaturesProcessor Section Digital I/O Counter/TimersAnalog Input Analog OutputPrometheus Board Drawing Cable B Main I/O Connector J3O Headers Cable aIR RX, IR TX Connector Part NumbersCOM1 COM4 LPT1Input Power J11 Ethernet J4 Output Power J12USB J5 Watchdog/Failsafe Features J6 Auxiliary Serial Port Connector J15IDE Drive J8 Floppy Drive J7Signal Name Definition Data Acquisition I/O Connector J14 Model PR-Z32-EA onlyJ2 PC/104 16-bit bus connector J1 PC/104 8-bit bus connector 11 PC/104 Bus ConnectorsJ10 System Configuration Jumper ConfigurationCmos RAM J6 Watchdog Timer & System Recovery System Resources System FeaturesCPU Chip Selects Console Redirection to a Serial Port Watchdog Timer Flash Memory Failsafe Mode / Bios RecoveryBackup Battery System ResetBios Settings BiosDOS Bios Download / Recovery Disk-On-Board Flash File Storage Initial SetupOperating System Formatting Life Cycle Management and Calculations Known LimitationsEthernet System I/OParallel Port Serial PortsInstalling an OS From a Floppy Drive onto a Flashdisk Module Booting to DOS From a Floppy DriveInstalling an OS from a Hard Disk onto a Flashdisk Module Data Acquisition Circuit LSB Data Acquisition Circuitry I/O MAPBase Address Base + Write Function Read FunctionAD7 AD6 AD5 AD4 AD3 AD2 AD1 AD0 Data Acquisition Circuit Register MapRegister Bit Definitions Command RegisterBase + AD9 AD8 Base + ReadValue = Base + 0 value + Base + 1 value Base + Write Not Used ReadBase + Read/Write Channel Register Base + Write Analog Input Gain STS Wait Dacbsy OVF Scanen Base + Read Analog Input StatusFT5 FT4 FT3 FT2 FT1 FT0 Base + Read/Write Interrupt / DMA / Counter ControlCKSEL1 CKFRQ1 CKFRQ0 Adclk Dmaen Tinte Dinte Ainte Base + Read/Write Fifo ThresholdFD5 FD4 FD3 FD2 FD1 FD0 Base + WriteDA7 DA6 DA5 DA4 DA3 DA2 DA1 DA0 Base + Read Channel and Fifo StatusBase + Read Analog Operation Status Base + Write DAC MSB + Channel NoDACH1 DACH0 DA9 DA8Dioctr = Base + Read / WriteBase + Read / Write Digital I/O Control Register Dioctr Dira Dirch Dirb DirclBase + Read/Write Counter/Timer D15 Base + Read/Write Counter/Timer D7Base + Read/Write Counter/Timer D23 Ctrno Latch Gtdis Gten Ctdis Cten Load CLR Base + Write Counter/Timer Control RegisterREV7 REV6 REV5 REV4 REV3 REV2 REV1 REV0 Base + Read Fpga Revision CodeData Acquisition Circuit Configuration Single-ended / Differential Inputs Analog Output ConfigurationUnipolar / Bipolar Inputs Input Range Selection Analog Input Ranges and ResolutionInput Range Resolution 1 LSB OverviewPerforming AN A/D Conversion LSB = inpbase MSB = inpbase+1 Perform an A/D conversion on the current channelInput voltage = A/D value / 32768 * Full-scale input range 15.A/D SCAN, INTERRUPT, and Fifo Operation LOW, High Prometheus A/D Operating ModesAinte Scanen LSB = Output voltage range Analog Output Ranges and ResolutionResolution DescriptionREF 1 LSB 16.4 D/A Conversion Formulas and TablesConversion Formulas for Bipolar Output Ranges Generating AN Analog Output 18.3 A/D full-scale Analog Circuit Calibration18.1 A/D bipolar offset 18.2 A/D unipolar offsetDigital I/O Operation Counter 0 A/D Sample Control COUNTER/TIMER OperationCounter 1 Counting/Totalizing Functions Counter Command SequencesCounter Outpbase+15,0x01 Outpbase+15,0x81 Data Acquisition Specifications Flashdisk Module ConfigurationUsing the Flashdisk with Another IDE Drive Power Supply23. I/O Panel Board USB a Panel Board I/O ConnectorsPanel Board Top Side / External Use I/O Connectors Location Type DescriptionJ12 pinout to/from DC/DC power supply Panel Board Power ConnectionsJ3 Pinout J5 USB J9 Pinout InstallationFlash Disk Programmer Board Photo No Cable No Description 25.I/O CablesCable Kit C-PRZ-KIT PL5 pin no PL5 Signal J25 pin no J25 Signal VGA Accessory BoardPL5 pin no DB15F pin no Signal Website information Prometheus Connector Manufacturer Manufacturer Part NoMounting Prometheus on a Baseboard LinksPage 28.PC/104 Mechanical Drawing

PR-Z32-E-ST, PR-Z32-EA-ST specifications

The Diamond Systems PR-Z32-EA-ST and PR-Z32-E-ST are pioneering solutions in the realm of embedded computing systems, designed to meet the challenging demands of various industrial applications. These boards harness advanced technologies and a comprehensive feature set to ensure exceptional performance, flexibility, and reliability.

At the heart of the PR-Z32 series is a robust processor architecture that combines efficiency with processing power. The systems are built around the Zynq-7000 SoC (System on Chip), which integrates a dual-core ARM Cortex-A9 processor with Xilinx FPGA technology. This hybrid architecture provides the ability to run complex algorithms and custom logic concurrently, making the boards ideal for applications requiring intense computational tasks such as image processing, data acquisition, and real-time control.

One of the main features of the PR-Z32-EA-ST and PR-Z32-E-ST is their versatility. Both variants support a wide range of I/O options, including USB, Ethernet, CAN, and serial interfaces. This range of connectivity allows for integrations with various sensors, actuators, and other peripheral devices, making it suitable for industrial automation, robotics, and IoT projects. The inclusion of multiple GPIO pins also enhances the capability of the boards to interface with additional hardware.

In terms of performance, the PR-Z32 series supports substantial amounts of on-board memory, which can be essential for applications requiring the storage and processing of large datasets. The configurations are often customizable, allowing users to select the appropriate amount of RAM and on-board flash memory for their specific applications.

Reliability is a critical characteristic of the Diamond Systems PR-Z32 series. The boards are built to withstand adverse environmental conditions, making them suitable for deployment in industrial environments. They are often designed to operate over a wide temperature range, ensuring functionality in both hot and cold climates. Additionally, the boards are compliant with various industry standards, assuring users of their robustness and durability.

Moreover, the PR-Z32-EA-ST and PR-Z32-E-ST support real-time operating systems (RTOS) and conventional operating systems such as Linux. This support provides developers with the flexibility to choose the best environment for their applications, whether they require real-time performance or full-fledged operating system features.

In conclusion, the Diamond Systems PR-Z32-EA-ST and PR-Z32-E-ST are formidable options for those seeking powerful, versatile, and reliable embedded computing solutions. With their advanced SoC architecture, flexible I/O options, extensive memory configurations, and environmental resilience, these boards are well-equipped to tackle the challenges of modern industrial applications.