参数资料
型号: 668-0003-C
厂商: Rabbit Semiconductor
文件页数: 42/228页
文件大小: 0K
描述: IC CPU RABBIT2000 30MHZ 100PQFP
标准包装: 100
系列: Rabbit 2000
处理器类型: Rabbit 2000 8-位
速度: 30MHz
电压: 2.7V,3V,3.3V,5V
安装类型: 表面贴装
封装/外壳: 100-BQFP
供应商设备封装: 100-PQFP(14x20)
包装: 托盘
其它名称: 316-1004
668-0003
第1页第2页第3页第4页第5页第6页第7页第8页第9页第10页第11页第12页第13页第14页第15页第16页第17页第18页第19页第20页第21页第22页第23页第24页第25页第26页第27页第28页第29页第30页第31页第32页第33页第34页第35页第36页第37页第38页第39页第40页第41页当前第42页第43页第44页第45页第46页第47页第48页第49页第50页第51页第52页第53页第54页第55页第56页第57页第58页第59页第60页第61页第62页第63页第64页第65页第66页第67页第68页第69页第70页第71页第72页第73页第74页第75页第76页第77页第78页第79页第80页第81页第82页第83页第84页第85页第86页第87页第88页第89页第90页第91页第92页第93页第94页第95页第96页第97页第98页第99页第100页第101页第102页第103页第104页第105页第106页第107页第108页第109页第110页第111页第112页第113页第114页第115页第116页第117页第118页第119页第120页第121页第122页第123页第124页第125页第126页第127页第128页第129页第130页第131页第132页第133页第134页第135页第136页第137页第138页第139页第140页第141页第142页第143页第144页第145页第146页第147页第148页第149页第150页第151页第152页第153页第154页第155页第156页第157页第158页第159页第160页第161页第162页第163页第164页第165页第166页第167页第168页第169页第170页第171页第172页第173页第174页第175页第176页第177页第178页第179页第180页第181页第182页第183页第184页第185页第186页第187页第188页第189页第190页第191页第192页第193页第194页第195页第196页第197页第198页第199页第200页第201页第202页第203页第204页第205页第206页第207页第208页第209页第210页第211页第212页第213页第214页第215页第216页第217页第218页第219页第220页第221页第222页第223页第224页第225页第226页第227页第228页
130
Rabbit 2000 Microprocessor User’s Manual
an exception to be aware of when a serial port has to operate at an extremely high speed. At
115,200 bps, the highest speed of a PC serial port, the interrupts must be serviced in 10 baud
times, or 86 s, in order not to lose the received characters. If all four serial ports were operat-
ing at this receive speed, it would be necessary to service the interrupt in less than 21.5 s to
assure no lost characters. In addition, the time taken by other interrupts of equal or higher
priority would have to be considered. A receiver service routine might appear as follows
below. The byte at bufptr is used to address the buffer where data bits are stored. It is nec-
essary to save and increment this byte because characters could be handled out of order if
two receiver interrupts take place in quick succession.
receive:
PUSH HL
; 10 save hl
PUSH DE
; 10 save de
LD HL,STRUCT
; 6
LD A,(HL)
; 5 getin-pointer
LD E,A
; 2 save in pointer in e
INC HL
; 2 point to out-pointer
CMP A,(HL)
; 5 see if in-pointer=out-pointer (buffer full)
JR Z,roverrun
; 5 go fix up receiver over run
INC A
; 2 incement the in pointer
AND A,MASK
; 4 mask such as 11110000 if 16 buffer locs
DEC HL
; 2
LD (HL),A
; 6 update the in pointer
IOI LD A,(SCDR) ; 11 get data register port C, clears interrupt request
IPRES
; 4 restore the interrupt priority
; 68 clocks to here
; to level before interrupt took place
; more interrupts could now take place,
; but receiver data is in registers
; now handle the rest of the receiver interrupt routine
LD HL,BUFBASE
; 6
LD D,0
; 6
ADD HL,DE
; 2 location to store data
LD (HL),A
;
6 put away the data byte
POP DE
;7
POP HL
; 7
POP AF
; 7
RET
; 8 from interrupt
; 117 clocks to here
This routine gets the interrupts turned on in about 68 clocks or 3.5 s at a clock speed of
20 MHz. Although two characters may be handled out of order, this will be invisible to a
higher level routine checking the status of the input buffer because all the interrupts will
be completed before the higher level routine can perform a check on the buffer status.
A typical way to organize the buffers is to have an in-pointer and an out-pointer that incre-
ment through the addresses in the data buffer in a circular manner. The interrupt routine
manipulates the in-pointer and the higher level routine manipulates the out-pointer. If the in-
pointer equals the out-pointer, the buffer is considered full. If the out-pointer plus 1 equals
the in-pointer, the buffer is empty. All increments are done in a circular fashion, most easily
accomplished by making the buffer a power of two in length, then anding a mask after the
increment. The actual memory address is the pointer plus a buffer base address.
相关PDF资料
PDF描述
668-0011 IC MPU RABIT3000A 55.5MHZ128LQFP
6PAIC3106IRGZRQ1 IC AUDIO CODEC STEREO 48-QFN
70001851 DEVICE SERVER 1PORT SRL-ETHERNET
73M1822-IM/F MICRODAA VOICE DATA/FAX 42-QFN
73M1866B-IM/F MICRODAA SGL PCM HIGHWAY 42-QFN
相关代理商/技术参数
参数描述
6680005578829 制造商: 功能描述: 制造商:undefined 功能描述:
6680008268807 制造商: 功能描述: 制造商:undefined 功能描述:
6680-00-882-0965 制造商: 功能描述: 制造商:undefined 功能描述:
6680008912796 制造商: 功能描述: 制造商:undefined 功能描述:
6680009296667 制造商: 功能描述: 制造商:undefined 功能描述: