The Datasheet Archive - 100 Million Datasheets from 7500 Manufacturers.    


Datasheet Search Engine   
 
Part # or Description: • 5V RS232 Driver • 2SC5066* • "Real Time Clock" • "USB connector" • "blue led" 5mm • 10 watt zener diode • 2N3055* motorola
 
Search Tip: Try entering the part number only. Include a wildcard (eg. lm317* or 1n4148*)

 

 

AP1627 additional file Software module M3L-bus using HS-SSC


Datasheet Thumbnail

  

Download PDF



Top Searches for this datasheet



AP162701.EXE available
AP1627
additional file
Software module M3L-bus using HS-SSC C16x microcontroller family.
This software module M3L-bus using High-Speed Synchronous Serial Channel C16X microcontroller family. M3L-bus used mainly communicate between microcontroller Television application like MegaText, Compact Text.
Author: Choon Hock/SCPL
Semiconductor Group
1.97, Rel.
Software module M3L-bus using HS-SSC C16X family
Introduction M3L-bus M3L-bus Specifications Data Transfer Formats Timing Diagram Hardware Connection.
Description Software Software Concept. Description Module Subroutines Compilation Software
AP1627 ApNote Revision History Actual Revision Rel. Previous Revision: none (Original Version) Page Page actual Rel. prev. Rel.
Semiconductor Group
AP1627 1.97
Software module M3L-bus using HS-SSC C16X family
Introduction M3L-bus
M3L-bus single master protocol which consists 3-wire bus; SCL(clock), SDA(data), I2CEN (for START STOP condition). clock frequency achieve that means faster data transfer rate Bus. microcontrollers from Siemens have hardware interface which used M3L-bus protocol. This software module using hardware peripheral High-Speed Synchronous Serial Channel C16X microcontroller family.
M3L-bus Specification Data Transfer formats
When there HIGH transition I2CEN line, indicates START condition. HIGH transition I2CEN defined STOP condition. data line only changed when clock signal line HIGH. Therefore, data line must stable during period clock signal. Each information puts line must 8-bit long. There acknowledge followed every byte sent this M3L-bus protocol. reason implement acknowledge that MegaText comes with input filter lines which will suppress high-frequency interference those lines. M3L-bus mode, data transmitted first. example, chip selected address 1000100 LSB, then data line will 0010001(R/W) MSB. difference from that READ/WRITE position. write select address will 44H, read select address this case C4H. transmitted received data 10110001 LSB, data line will 10001101 MSB. USART peripheral Siemens' microcontroller will sending receiving first. data transmit receive shift registers normal format xxxxxxxx LSB. Therefore, there additional software involved conversion data. There only basic types data transfer format M3L-bus. Figure shows -bus data transfer format writing data from microcontroller/master MegaText/slave. Figure shows data transfer format reading data from MegaText/slave microcontroller/master.
Semiconductor Group
AP1627 1.97
Software module M3L-bus using HS-SSC C16X family
I2CEN
Start Condition Slave Address Write address Data Data
Stop Condition
Start Slave Address
Write
address
Data
Data
Stop
Figure M3L-bus data transfer format writing data slave
I2CEN
Start Condition Slave Address Write address Stop Start Slave Read Address Data Data
Stop Condition
Start Slave Address
Write
Addr
Stop Start
Addr
Read
Data
Data
Stop
Figure M3L-bus data transfer format reading data from slave
Semiconductor Group
AP1627 1.97
Software module M3L-bus using HS-SSC C16X family
Timing Diagram
clock frequency range 1.0MHz. clock M3L-bus minimum HIGH period 400ns. Occasionally, MegaText/slave device slow down transmission holding clock line after receiving byte data from microcontroller. This phenomenon defined WAIT condition. Therefore, microcontroller/master needs switch output high impedance read line before transmitting another byte data slave device. Figure shows data transfer timing requirements detail. description abbreviations used shown Table minimum timing requirements needed fulfilled order M3L-bus operate properly.
I2CEN
tHIGH tLOW
tDSL
tDSL tDHH
tDWAIT
WAIT
RWAIT Condition
Figure M3L-bus timing diagram
Semiconductor Group
AP1627 1.97
Software module M3L-bus using HS-SSC C16X family
Table Abbreviation M3L-bus timing diagram Parameter Symbol Limit Values min. Set-up time I2CEN falling edge Set-up time input falling edge Hold time input from falling edge next rising edge HIGH-time clock LOW-time clock Delay from rising edge until open drain output stage changes impedance Set-up time from I2CEN rising edge Delay from rising edge forced WAIT condition pull-up time WAIT condition load capacitance level output impedance tDSL tDHH typ. max. Unit
tHIGH tLOW
tDWAIT
tRWAIT CSCL
Semiconductor Group
AP1627 1.97
Software module M3L-bus using HS-SSC C16X family
Hardware Connection
Every device connected M3L-bus must have open drain/open collector output both clock (SCL) data (SDA) lines. Each lines connected supply common pull-up resistor value. I2CEN line configured push-pull output. connection among master many slave's devices shown figure number devices connected M3L-bus limited only maximum load capacitance 200pF.
egaT
Figure Hardware connection among master slave devices
Semiconductor Group
AP1627 1.97
Software module M3L-bus using HS-SSC C16X family
Description Software Software Concept
M3L-bus generated High-Speed Synchronous Serial Channel C16X microcontroller. clock frequency M3L-bus with microcontroller. baud rate generator line determined following formula: BSSC fCPU (<SSCBR> SSCBR fCPU BaudrateSSC <SSCBR> represents content reload register. example, SSCBR (20M/(2*1.0M)) order achieve clock frequency, SSCBR must assigned which based clock microcontroller. HS-SSC uses lines communication; SCLK (P3.13 DP3.13 serves clock line, MRST (P3.8 DP3.8 serves serial data input line (master receive/slave transmit), MTSR (P3.9 DP3.9 serves serial data output(master transmit/slave receive). P3.8 P3.9 pins connected together line half duplex operation. operating mode controlled control register SSCCON. common configuration data with first, master mode, high idle clock line, high-to-low transition leading clock edge. When M3L- transmission mode, configured shift transmit data leading clock edge. When M3L-bus reception mode, configured latch receive data leading clock edge, This software module will check clock line before byte data sent received. also checks WAIT condition before generating STOP condition. time delay minimum tDWAIT needed before checking WAIT condition after byte data sent /received before next byte data sent/received. time delay needed allow enough time slave device pull down line execution time C16X microcontroller shorter than
Semiconductor Group
AP1627 1.97
Software module M3L-bus using HS-SSC C16X family
M3L_HSSC.C software module divided into software subroutines which accessed main external program. Those software subroutines used construct data transfer format M3L-bus which consists types; writing data slave, reading data from slave. Those software subroutines M3lInit, M3lStart, M3lMasterWrite, M3lMasterRead, M3lStop. types data transfer format written M3L_TEST.C. M3L_TEST.C simple test program which just verify M3L_HSSC.C software module. This test program transmit bytes data MegaText from array location microcontroller. bytes data will stored MegaText Next, microcontroller will read back contents bytes from MegaText then store into another array location microcontroller.
Semiconductor Group
AP1627 1.97
Software module M3L-bus using HS-SSC C16X family
Description Module Subroutines
M3L-BUS Software Module
Source file: Header file: M3L_HSSC.C
Description This module standard M3L-bus single master protocol using hardware peripheral High-Speed Synchronous Serial Channel C16X microcontroller.
Module Subroutines void CheckClockLine(); void M3lInit(); unsigned char M3lStart(); void M3lMasterWrite(unsigned char input_byte); unsigned char M3lMasterRead(); void M3lStop();
void CheckClockLine() Read line WAIT condition. will wait until line been released from slave device. time delay minimum implemented before checking WAIT condition allow more time slave device pull down line. Parameter None Description
Semiconductor Group
AP1627 1.97
Software module M3L-bus using HS-SSC C16X family
void M3lInit() Initialize port serial communication. P3.7 I2CEN, P3.13 SCLK, P3.8 P3.9 SDA. Configure synchronous channel baud rate MBaud. Pull-up resistors required lines. Parameter None Description
unsigned char M3lStart() Generate start condition bus. Before that, check data line faulty like pull-up resistor pull-down slave device. time-out data line approximately before start protocol. Parameter None Description
Return return value clock data lines have problem. Otherwise, return value will "1".
void M3lMasterWrite(unsigned char input_byte) Output byte data slave device. Before that, check WAIT condition. Parameter unsigned char input_byte Description byte data sent slave.
Semiconductor Group
AP1627 1.97
Software module M3L-bus using HS-SSC C16X family
unsigned char M3lMasterRead() Read byte data from slave device. Before that, check WAIT condition. Parameter None Description
Return Master device will receive byte data from slave device.
void M3lStop() Check WAIT condition before generating STOP condition M3L-bus. Parameter None Description
Semiconductor Group
AP1627 1.97
Software module M3L-bus using HS-SSC C16X family
M3L-BUS Application Software
Source file: Header file: M3L_TEST.C M3L.H
Description This main program transmit bytes data MegaText (SDA 5273) from "raw_data" array. bytes data will stored MegaText device address 5273 (R/W)1000100 LSB. mode, byte transmitted first. sub-address 00001000B. Next, microcontroller will read back contents bytes from store "stored_data" array.
Software subroutines unsigned char WriteMegatext(unsigned char sub_addr,unsigned char *buffer,unsigned char num_byte) unsigned char ReadMegatext(unsigned char sub_addr,unsigned char *buffer,unsigned char num_byte)
unsigned char WriteMegatext(unsigned char sub_addr,unsigned char *buffer,unsigned char num_byte) Write number data bytes MegaText. flow this subroutine derived from data format writing MegaText figure there faulty, data will written. Parameter unsigned char sub_addr unsigned char *buffer unsigned char num_byte Description specifies sub-address point addressed location number bytes written
Return return value clock data lines have problem. Otherwise, return value will "1".
Semiconductor Group
AP1627 1.97
Software module M3L-bus using HS-SSC C16X family
unsigned char ReadMegatext(unsigned char sub_addr,unsigned char *buffer,unsigned char num_byte) Read number bytes from MegaText. flow this subroutine derived from data format reading from MegaText figure there faulty, data will read. Parameter unsigned char sub_addr unsigned char *buffer unsigned char num_byte Description specifies sub-address point addressed location number bytes read
Return return value clock data lines have problem. Otherwise, return value will "1". Compilation Software
compilation this software using KEIL C166 compiler. First all, under PROJECT, clicks "New Project", then name this project files project which M3L_HSSC.C M3L_TEST.C. Then, save project. After-that, OPTIONS click "C166 Compiler." Lastly, select option under OBJECT cross under "Enable 80C167 instructions". This option will allow C16X derivatives. project really compile link object files. compiling linking project done clicking icon "BUILD ALL". AP162701.EXE compressed file contains M3L.H, M3L_HSSC.C, M3L_TEST.C. these files necessary complete compilation software program.
Semiconductor Group
AP1627 1.97

Other recent searches


FN4561 - FN4561   FN4561 Datasheet
DMR20A-1 - DMR20A-1   DMR20A-1 Datasheet
COM81C17 - COM81C17   COM81C17 Datasheet
AF002C1-39 - AF002C1-39   AF002C1-39 Datasheet
AF002C4-39 - AF002C4-39   AF002C4-39 Datasheet
1N4933G - 1N4933G   1N4933G Datasheet
1N4937G - 1N4937G   1N4937G Datasheet

 

Privacy Policy | Disclaimer
© 2012 Datasheet Archive