The C500 microcontroller family usually provides only one on-chip synchronous serialchannel (SSC). If a second SSC is required, an emulation of the missing interface mayhelp to avoid an external hardware solution with additional electronic components.The solution presented in this paper and in the attached source files emulates the mostimportant SSC functions by using optimized SW routines with a performance up to 25KBaud in Slave Mode with half duplex transmission and an overhead less than 60% atSAB C513 with 12 MHz. Due to the implementation in C this performance is not the limitof the chip. A pure implementation in assembler will result in a strong reduction of theCPU load and therefore increase the maximum speed of the interface. In addition,microcontrollers like the SAB C505 will speed up the interface by a factor of two becauseof an optimized architecture compared with the SAB C513.Moreover, this solution lays stress on using as few on-chip hardware resources aspossible. A more excessive consumption of those resources will result in a highermaximum speed of the emulated interface.Due to the restricted performance of an 8 bit microcontroller a pin compatible solution isprovided only; the internal register based programming interface is replaced by a set ofSubroutine calls.The attached source files also contain a test shell, which demonstrates how to exchangeinformation between an on-chip HW-SSC and the emulated SW-SSC via 5 external wiresin different operation modes. It is based on the SAB C513 (Siemens 8 bit microcontroller).A table with load measurements is presented to give an indication for the fraction of CPUperformance required by software for emulating the SSC.
標簽: synchronous Emulating serial
上傳時間: 2014-01-31
上傳用戶:z1191176801
一篇長90頁的PPT和10個左右的示例源程序,對于自學能力強且有一定計算機編程基礎的人來說上手還是很快的。 •Understand the components of a Virtual Instrument •Introduce labview and common labview functions •Build a simple data acquisition application •Create a Subroutine in labview
上傳時間: 2013-11-21
上傳用戶:yeling1919
實用的單片機開發與應用程序,包括:中值濾波子程序,AD轉換類程序,16、32位整型數開方,單片機音樂程序--祝你平安。對初學者很有幫助的。MCU development and practical applications, including: median filter Subroutine, AD converter type of proceeding, 16,32-bit integer number prescribing, SCM music program - I wish you peace. Helpful for beginners.
上傳時間: 2016-01-27
上傳用戶:sunjet
Watchdog software code, development environment KEIL, including the main program and "Weigou" Subroutine
標簽: development environment including Watchdog
上傳時間: 2013-12-16
上傳用戶:lijianyu172
Number of Namespaces in the project: 1 Number of Classes in the project: 6 Number of C# function(s) in the project: 2 Number of C# Subroutine(s) in the project: 15 Number of VB.NET function(s) in the project: 1 Number of VB.NET Subroutine(s) in the project: 10 Number of Application variable(s) used in the project: 3 Number of Session variable(s) used in the project: 1 Number of Distinct Email Addresses(s) found in the project: 4 Generation of documentation took 0 minute 18 seconds
標簽: Number project Namespaces the
上傳時間: 2013-12-09
上傳用戶:許小華
Main program running when workpiece is ready on deferent belt(deferent_ready=ture). * Call Square_Wave Subroutine to generate 0.5ms square wave on P1.2 to drive * electromotor,then drive deferent belt step forward. When it steps to the measure * zone, it stops to be measured. Then call A_D Subroutine to transform analog * signals to digital signals , after then call serial Subroutine to transfer * digital signals to PC. Call square wave Subroutine to drive deferent belt step to * original position waitting for defere ready flag to run the next circle.
標簽: deferent_ready workpiece deferent program
上傳時間: 2017-08-31
上傳用戶:baiom
module M_GAUSS !高斯列主元消去法模塊 contains Subroutine LINEQ(A,B,X,N) !高斯列主元消去法 implicit real*8(A-Z) integer::I,K,N integer::ID_MAX !主元素標號 real*8::A(N,N),B(N),X(N) real*8::AUP(N,N),BUP(N) !A,B為增廣矩陣 real*8::AB(N,N+1) real*8::VTEMP1(N+1),VTEMP2(N+1) AB(1:N,1:N)=A AB(:,N+1)=B
標簽: fortan Newton 程序 數值分析 方程 非線性
上傳時間: 2018-06-15
上傳用戶:answer123