Do you have a question? Post it now! No Registration Necessary
- Posted on
- Serial transfer problem
December 22, 2006, 3:08 pm
rate this thread
I am using a DS89C440 flash micro running at 29.491Mhz with 64k of external
RAM and no external ROM.
I am running my serial port using timer-1 for baud rate generator at
My source computer is a P4-3Ghz running winxp-pro and my program for sending
data to the micro is Visual C++ 6.0
For some reason I dont under stand, not all the data I send to the micro
My serial receive code for the micro is below:
; ***** Get job data from PC *****
getpc: mov dptr,#1000h ;set dptr to data area
getpc1: jnb ri,getpc1
mov a,sbuf ;get char from port
movx @dptr,a ;save data to memory
cjne a,#20h,getpc1 ;receive 8319 bytes
ljmp loop ;top of program
December 22, 2006, 3:22 pm
Re: Serial transfer problem
I am sure of the number of bytes transferred and tested with 2nd pc using
I am using no interrupts on the micro, my serial uses polling only.
I dont see how making the serial routing interrupt driven would help.
I think it would increase the possibility of missing bytes more possible due
to the extra instructions.
I am doing nothing else while receiving data from the pc.
December 22, 2006, 4:32 pm