Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

signal START# ( active - low, driven by some virtual peripheral device ) is at high level and output signal ACK# ( active - low,

signal START# (active-low, driven by some virtual peripheral device) is at high level and output signal ACK# (active-low, generated by your STM32 DISC1 microcontroller system) must be set to high level. After a high-to-low transition on signal START# has been detected, the microcontroller system should place its new 8-bit data byte on the D7,..., D0 data lines. After that output signal ACK# should be driven low. After START# has made a low-to-high transition ACK# should return to high level as well. The timing diagram of this signal flow may repeat indefinitely. The microcontroller system should use the high-to low transition of the START# signal to generate a new data byte for transfer (being incremented by eight in a modulo-256 fashion). It is assumed that the rate of change for the START# signal is low enough for the microcontroller system to carry out the required tasks. Signals START#, ACK# and D7,..., D0 should be mapped to PC7, PC6 and PE15,...,PE8, respectively. You are to develop a hardware circuit and a program for this interface. Each signal interfaced to the microcontroller board must be buffered. The HCLK clock frequency should be set up to 144MHz(using the HSE 8MHz clock source) and the PCLK1 clock frequency to 36MHz, respectively.
Explain your approach for the integrated hardware/software solution to the problem. That should include the necessary initialization of the GPIO and clock control registers (i.e., GPIO ports signal/bit maps). In addition, your solution should guarantee that signal ACK# stays at high level upon power up.(10 pts.)
Draw a detailed schematic diagram for the hardware part of this interface. Your schematics should include P1 and P2 Header and chip pin numbers, respectively. All signal lines should be labeled.
pts.)
Develop a syntactically correct C program for this interface. You may assume that your program will have sufficient time to initialize all registers before the peripheral device is ready to drive signal START# low. You are not required to
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essential Data Protection For Estate Agencies In Singapore 2024

Authors: Yang Yen Thaw Yt

1st Edition

B0CQK79WD3, 979-8872095392

More Books

Students also viewed these Databases questions