Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Embeded-SCM Develop SCM
Title: RS-232 Download
  • Category:
  • SCM
  • Tags:
  • [Text]
  • File Size:
  • 2kb
  • Update:
  • 2012-11-26
  • Downloads:
  • 0 Times
  • Uploaded by:
  • aza.0
 Description: void UART_init (){// to initialize the serial port and baud rate generator SCON = 0x58// Select the serial work, open the receiver to allow TMOD = 0x21// Timer 1 in Mode 2, Timer 0 work in a manner 1TH1 = 0xfd// to achieve 9600 baud rate (system clock 11.0592MHZ) TR1 = 1// start the timer T1ET1 = 0 ES = 1// allow the serial port interrupt PS = 1// Design of Serial Port Interrupt Priority class EA = 1// Single-chip Interrupt Enable)
 Downloaders recently: [More information of uploader aza.0]
 To Search:
  • [ARMSYS] - Lee Yu-tai Hangzhou-based company 44B0 A
File list (Check if you may need any files):
RS-232.txt
    

CodeBus www.codebus.net