Serial Output Tips & Techniques
by GreenPAK™ in Circuits > Microcontrollers
13 Views, 0 Favorites, 0 Comments
Serial Output Tips & Techniques
This project demonstrates various ways to output data serially from the GreenPAK devices.
Introduction
This app note demonstrates various ways to output data serially from the GreenPAK devices. We will cover GreenPAK4 and GreenPAK5 devices but some of these techniques can apply to older PAKs as well. First, serial data is a pattern of logical 1s and 0s used to communicate with another device, such as an MCU, that will interpret the 1s and 0s for its own use. The data could represent device ID, serialized parallel data, or an arbitrary pattern. This app note explains the six basic serial output techniques using GreenPAK components from the simple pattern generator to the more complex 8-state state machine. To follow along, download the GP files Serial_Output_Techniques_PAK4, Serial_Output_Techniques_PAK5_Horizontal and Serial_Output_Techniques_PAK5_Vertical. The first file contains general techniques and the latter two contain state machine examples.
PGEN
The simplest to understand, the PGEN is already designed to be a pattern generator. Each rising edge of CLK shifts out the next bit in the pattern and wraps around.
• Make matrix connections as shown in Figure 9.
• Configure Pattern with the desired serial data. (max. 16-bis)