Sony 486DX, DX4, AR-B1474 manual Receive data, Send out one character to COM1

Page 67

AR-B1474 User¡¦s Guide

(3) Send out one block data (Transmit – the data more than two characters)

Step 1: Enable TXC signal, and the bit 0 of the address of offset+4 just sets “1” .

Step 2: Send out the data. (Write all data to the offset+0 of the current COM port address)

Step 3: Wait for the buffer’ s data empty. Check transmitter holding register (THRE, bit 5 of the address of offset+5), and transmitter shift register (TSRE, bit 6 of the address of offset+5) are all sets must be “0” .

Step 4: Disabled TXC signal, and the bit 0 of the address of offset+4 sets “0”

(4) Receive data

The RS-485’ s operation of receiving data is in the same of the RS-232’ s.

(5)Basic Language Example a.) Initial 86C450 UART

10OPEN “COM1:9600,m,8,1” AS #1 LEN=1

20REM Reset DTR

30OUT &H3FC, (INP(%H3FC) AND &HFA)

40RETURN

b.) Send out one character to COM1

10REM Enable transmitter by setting DTR ON

20OUT &H3FC, (INP(&H3FC) OR &H01)

30REM Send out one character

40PRINT #1, OUTCHR$

50REM Check transmitter holding register and shift register

60IF ((INP(&H3FD) AND &H60) >0) THEN 60

70REM Disable transmitter by resetting DTR

80OUT &H3FC, (INP(&H3FC) AND &HEF)

90RETURN

c.) Receive one character from COM1

10REM Check COM1: receiver buffer

20IF LOF(1)<256 THEN 70

30REM Receiver buffer is empty

40INPSTR$”

50RETURN

60REM Read one character from COM1: buffer

70INPSTR$=INPUT$(1,#1)

80RETURN

9-3

Image 67
Contents Industrial Grade 486DX/DX2/DX4 CPU Card Page Table of Contents SSD Types Supported & Index Bios ConsoleSpecifications Placement & Dimensions Memory Banks & Programming RS-485Preface Organization Static Electricity PrecautionsIntroduction OverviewPacking List FeaturesDMA Controller System ControllerDMA Controller Keyboard ControllerInterrupt Controller Interrupt ControllerHex Range Device 1 I/O Port Address MapI/O Port Address Map Real-Time Clock & Non-Volatile RAM TimerReal-Time Clock and Non-Volatile RAM Address DescriptionISA Bus Pin Assignment ISA Bus Pin AssignmentName Description ISA Bus Signal DescriptionDlab Serial PortReceiver Buffer Register RBR Transmitter Holding Register THRModem Control Register MCR Interrupt Enable Register IERInterrupt Identification Register IIR Line Control Register LCRRegister Address Parallel PortModem Status Register MSR Divisor Latch LS, MSPrinter Status Buffer Data SwapperPrinter Control Latch & Printer Control Swapper Overview Setting UP the SystemRS-485 Adapter Select JP3 & JP11 System SettingRS-232 Connector DB1 & DB2 Serial PortPower Connector J5 Hard Disk IDE Connector CN1HDD Pin Assignment Parallel Port Connector CN3 FDD Port Connector CN2CN3 Pin PC/104 Connector Bus a & B CN6 6 PC/104 ConnectorPin PC/104 Connector Bus C & D CN4 IRQ 3-7, 9-12, 14 PC/104 ISA Bus Signal DescriptionAMD 4X CPU 5x86 Select JP15 CPU SettingAMD DX2-80 CPU Select JP1 CPU Voltage Select JP2CPU Clock Select JP6 & JP9 CPU Clock SettingSIMM1 Memory SettingDram Configuration Cache RAM Size Select JP8LED Header J1, J2 & J4 Keyboard ConnectorCRT Display Type Select JP13 Reset Header J7Battery Setting External Speaker Header J3Page Installation PGM1474.EXE Utility DisketteWP1474.EXE WD1474.EXEBU1474.EXE Help to PGF File Display Error in PGF FileHardware Write Protect Enable the Software Write ProtectDisable the Software Write Protect Write Protect FunctionTime Factor Time-Out Period Seconds Watchdog TimerWatchdog Timer Setting Time-Out SettingWatchdog Timer Trigger Watchdog Timer EnabledWatchdog Timer Disabled Page Solid State Disk Switch SettingDEVICE=C\DOS\EMM386.EXE X=C800-CFFF Overview2 I/O Port Address Select SW1-1 & SW1-2 SSD Firmware Address Select SW1-3 & SW1-4Simulate 2 Disk Drive SSD Drive Number SW1-5 & SW1-6Flash Eprom Sram Disk Drive Name Arrangement ROM Type Select SW1-7 & SW1-8SSD Bios Select JP7 Jumper SettingUV Eprom 27Cxxx SSD Memory Type Setting M1 ~ M3 & JP5ROM Disk Installation Switch and Jumper SettingSoftware Programming UV Eprom 27CXXX Switch SettingLarge Page 5V Flash Disk 5V Large Flash 29FXXX Switch SettingSmall Page 5V Flash ROM Disk 5V Flash 29CXXX & 28EEXXX Switch SettingTyping DOS Command Using Tool ProgramRAM Disk Jumper SettingCombination of ROM and RAM Disk Installation D.O.CHardware Setting SSD Bios Setting JP7O.C. Setting SW1-8 Software SettingPage Bios Setup Overview Bios ConsoleHard Disk Setup Standard Cmos SetupDate & Time Setup Floppy SetupAdvanced Cmos Setup Shadow IDE Block Mode TransferIDE LBA Mode Internal Cache MemoryAdvanced Chipset Setup Power Management Auto Configuration with Fail Safe Setting Setting PasswordPassword Checking Auto Configuration with Optimal SettingSave Settings and Exit Bios ExitExit Without Saving PCB SpecificationsBios CPUPage Placement Placement & Dimensions Dimensions Socket Using Memory BankMemory Banks & Programming RS-485 CS1 CS0Initialize COM port Programming RS-485Send out one character Transmit Send out one character to COM1 Receive dataPage SSD Types Supported SSD Types Supported & Index10-2 Name Function Index