Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| nexys:nexys4:refmanual [2014/09/11 00:35] – [14 Microphone] Joshua Woldstad | nexys:nexys4:refmanual [2022/10/04 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 45: | Line 45: | ||
| | **1** | Power select jumper and battery header | | **1** | Power select jumper and battery header | ||
| | **2** | Shared UART/ JTAG USB port | **14** | | **2** | Shared UART/ JTAG USB port | **14** | ||
| - | | **3** | External configuration jumper (SD / USB) | **15** | + | | **3** | External configuration jumper (SD / USB) | **15** |
| - | | **4** | Pmod connector(s) | **16** | + | | **4** | Pmod port(s) | **16** |
| | **5** | Microphone | | **5** | Microphone | ||
| | **6** | Power supply test point(s) | | **6** | Power supply test point(s) | ||
| Line 149: | Line 149: | ||
| The 16Mbyte Cellular RAM (Micron part number M45W8MW16) has a 16-bit bus that supports 8 or 16 bit data access. It can operate as a typical asynchronous SRAM with read and write cycle times of 70ns, or as a synchronous memory with a 104MHz bus. When operated as an asynchronous SRAM, the Cellular RAM automatically refreshes its internal DRAM arrays, allowing for a simplified memory controller (similar to any SRAM controller). When operated in synchronous mode, continuous transfers of up to 104MHz are possible. | The 16Mbyte Cellular RAM (Micron part number M45W8MW16) has a 16-bit bus that supports 8 or 16 bit data access. It can operate as a typical asynchronous SRAM with read and write cycle times of 70ns, or as a synchronous memory with a 104MHz bus. When operated as an asynchronous SRAM, the Cellular RAM automatically refreshes its internal DRAM arrays, allowing for a simplified memory controller (similar to any SRAM controller). When operated in synchronous mode, continuous transfers of up to 104MHz are possible. | ||
| - | FPGA configuration files can be written to the Quad SPI Flash (Spansion part number | + | FPGA configuration files can be written to the Quad SPI Flash (Spansion part number |
| **NOTE: Refer to the manufacturer’s data sheets and the reference designs posted on Digilent’s website for more information about the memory devices. | **NOTE: Refer to the manufacturer’s data sheets and the reference designs posted on Digilent’s website for more information about the memory devices. | ||
| Line 379: | Line 379: | ||
| Note: Digilent strongly recommends the use of Pulse-Width Modulation (PWM) when driving the tri-color LEDs (for information on PWM, see section 15.1). Driving any of the inputs to a steady logic ‘1’ will result in the LED being illuminated at an uncomfortably bright level. You can avoid this by ensuring that none of the tri-color signals are driven with more than a 50% duty cycle. Using PWM also greatly expands the potential color palette of the tri-color led. Individually adjusting the duty cycle of each color between 50% and 0% causes the different colors to be illuminated at different intensities, | Note: Digilent strongly recommends the use of Pulse-Width Modulation (PWM) when driving the tri-color LEDs (for information on PWM, see section 15.1). Driving any of the inputs to a steady logic ‘1’ will result in the LED being illuminated at an uncomfortably bright level. You can avoid this by ensuring that none of the tri-color signals are driven with more than a 50% duty cycle. Using PWM also greatly expands the potential color palette of the tri-color led. Individually adjusting the duty cycle of each color between 50% and 0% causes the different colors to be illuminated at different intensities, | ||
| - | ====== 10 PMOD Connectors | + | ====== 10 PMOD Ports ====== |
| - | The Pmod connectors | + | The Pmod ports are arranged in a 2x6 right-angle, |
| {{ : | {{ : | ||
| - | //Figure 20. PMOD Connectors- Front view as loaded on PCB | + | //Figure 20. PMOD Ports- Front view as loaded on PCB |
| // | // | ||
| Line 529: | Line 529: | ||
| ====== 15 Mono Audio Output ====== | ====== 15 Mono Audio Output ====== | ||
| + | The on-board audio jack (J8) is driven by a Sallen-Key Butterworth Low-pass 4th Order Filter that provides mono audio output. The circuit of the low pass filter is shown in Fig 29. The input of the filter (AUD_PWM) is connected to the FPGA pin A11. A digital input will typically be a pulse width modulated (PWM) signal or pulse density modulated (PDM) signal produced by the FPGA. The low pass filter on the input will act as a reconstruction filter to convert the pulse width modulated digital signal into an analog voltage on the audio jack output. | ||
| + | |||
| + | {{ : | ||
| + | //Figure 29. Sallen-Key Butterworth Low Pass 4th Order Fliter// | ||
| + | |||
| + | The frequency response of SK Butterworth Low Pass Filter is shown in Fig 30. The AC analysis of the circuit is done using NI Multism 12.0. | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | //Figure 30. SK Butterworth Low Pass Filter frequency response// | ||
| + | |||
| + | ==== 15.1 Pulse-Width Modulation ==== | ||
| + | |||
| + | A pulse-width modulated (PWM) signal is a chain of pulses at some fixed frequency, with each pulse potentially having a different width. This digital signal can be passed through a simple low-pass filter that integrates the digital waveform to produce an analog voltage proportional to the average pulse width over some interval (the interval is determined by the 3dB cut-off frequency of the low pass filter and the pulse frequency). For example, if the pulses are high for an average of 10% of the available pulse period, then an integrator will produce an analog value that is 10% of the Vdd voltage. Figure 31 shows a waveform represented as a PWM signal. | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | //Figure 31. Simple Waveform represented as PWM// | ||
| + | |||
| + | The PWM signal must be integrated to define an analog voltage. The low pass filter 3dB frequency should be an order of magnitude lower than the PWM frequency, so that signal energy at the PWM frequency is filtered from the signal. For example, if an audio signal must contain up to 5KHz of frequency information, | ||
| + | |||
| + | {{ : | ||
| + | //Figure 32. Representation of a PWM integrator producing an output voltage by integrating the pulse train// | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ====== 16 Built-In Self-Test ====== | ||
| + | |||
| + | A demonstration configuration is loaded into the SPI Flash device on the Nexys4 board during manufacturing. The source code and prebuilt bitstream for this design are available for download from the Digilent website. If the demo configuration is present in the SPI Flash device and the Nexys4 board is powered on in SPI mode, the demo project will allow basic hardware verification. Here is an overview of how this demo drives the different onboard components: | ||
| + | |||
| + | * The user LEDs are illuminated when the corresponding user switch is placed in the on position. | ||
| + | * The tri-color LEDs are controlled by some of the user buttons. Pressing BTNL, BTNC, or BTNR causes them to illuminate either red, green or blue, respectively. Pressing BTND causes them to begin cycling through many colors. Repeatedly pressing BTND will turn the two LEDs on or off. | ||
| + | * Pressing BTNU will trigger a 5 second recording from the onboard PDM microphone. This recording is then immediately played back on the mono audio out port. The status of the recording and playback is displayed on the user LEDs. | ||
| + | * The VGA port displays feedback from the onboard microphone, temperature sensors, accelerometer, | ||
| + | * Connecting a mouse to the USB-HID Mouse port will allow the pointer on the VGA display to be controlled. Note that some Microsoft mice have difficulty communicating with this demo. | ||
| + | * On power-up, the seven-segment display will show the results of an automated test for the onboard CellRAM, accelerometer, | ||
| + | |||
| + | All Nexys4 boards are 100% tested during the manufacturing process. If any device on the Nexys4 board fails test or is not responding properly, it is likely that damage occurred during transport or during use. Typical damage includes stressed solder joints and contaminants in switches and buttons resulting in intermittent failures. Stressed solder joints can be repaired by reheating and reflowing solder and contaminants can be cleaned with off-the-shelf electronics cleaning products. If a board fails test within the warranty period, it will be replaced at no cost. Contact Digilent for more details. | ||

