Upload Code
loading-left
loading loading loading
loading-right

Loading

Profile
No self-introduction
codes (2)
Single-chip multi-machine communication program wi
no vote
Program general idea is: First define several global variables after receiving the data, serial port interrupt subroutine with variable rec_data store one byte of data, then parses the data: first determines the packet's integrity, correctness, and extract the scripts, data and other data, stored for the main proceedings. Protocol analysis in the process of using a global variable state_flag variable as a protocol parsing state flags, used to determine the current byte in one frame of the site, while in the process of receiving Automatic checkpointing and process the received data, check the packets are received at the same time. So when the tail-end of the frame when received, it means that the frame has been received, and passed the verification, the key data is also saved to the buffer (cmd and Data[]). Main procedures carried out by querying the retval flag of the analytical treatment of the agreement.   If retval=1; Error fla
hjzhu
2016-08-23
0
1
DDS-based DA sine wave output
no vote
Sample behavioral waveforms for design file sin_ rom.vThe following waveforms show the behavior of altsyncram megafunction for the chosen set of parameters in design sin_ rom.v. For the purpose of this simulation, the contents of the memory at the start of the sample waveforms is assumed to be ( 3F0, 3F1, 3F2, 3F3, ...). The design sin_ rom.v has one read port. The read port has 1024 words of 10 bits each. The output of the read port is unregistered. Fig. 1 : Wave showing read operation. The above waveform shows the behavior of the design under normal read conditions. The read happens at the rising edge of the enabled clock cycle. The output from the RAM is undefined until
hjzhu
2016-08-23
0
1
No more~