GMA
(stranger)
Mon Oct 29 2007 09:29 PM
8051 Serial Support

I have reviewed all of the posts for the serial handler for the low level I/O functions related to getkey(), putchar(), etc, and nobody has yet to hit the nail on the head. On page 293 of the 8051 users manual it refers to the module getch.c in the sources directory containing model version of all console I/O routines. I cannot find that directory in my "full" installation of Hi-Tide and version 9.01 of te 8051-c compiler. What I am looking for, if it is posible, is the existing source code used to implement console I/O functions so that I may see how it works and modify it to work with the serial port, maybe even interrupt driven. I envision that I will probably have to use the librarian to replace the existing objects in the library with the ones that I create. Any help and/or advice would be appreciated.

Dan Henry
(Guru)
Tue Oct 30 2007 12:33 AM
Re: 8051 Serial Support

Code:
     Directory of c:\htsoft\8051-c_9.01\sources
21-Oct-2007 1:07:06p <DIR> .
21-Oct-2007 1:07:06p <DIR> ..
22-Jun-2004 5:01:00p 84 abs.c
22-Jun-2004 5:01:00p 178 acos.c
22-Jun-2004 5:01:00p 376 asin.c
.
.
.
22-Jun-2004 5:01:00p 825 getch.c
.
.
.


Containing definitions:

Code:
#define	NEAR	basenear
#define NEAR near
init_uart()
putch(char c)
kbhit()
getch()
getche()



GMA
(stranger)
Tue Oct 30 2007 08:08 AM
Re: 8051 Serial Support

The file I downloaded titled 8051-demo.exe with a date of 10/12/07 size 20.6 MB was run and the "full" type of install was chosen requiring 17.4MB of disk space. That resulted in the following directory structure being created:
C:/HTSOFT 8051-C_9.01 bin
include
jar
lib
manual
samples hitech
HI-TIDE_2.13 bin
dll
images
jar
plugin
What have I done wrong in order to not get the sources directory created? Is there another download that I have missed? I have tried to apply the patch 20867-hi-tide_2.13_update_2006_11_03.zip but when I do I break Hi-Tide (another posting) and the fix is for me to revert to JRE 1.5 or 1.4. Not real clear on how to do that but I don't see sources directory created when I install it.


Dan Henry
(Guru)
Tue Oct 30 2007 08:22 AM
Re: 8051 Serial Support

I have not installed the demo version, but it wouldn't surprise me if HI-TECH does not give away their library source code for the demo. Library source is included with the full version.


Contact Us | Privacy statement HI-TECH Software

Powered by UBB.threads™ 6.5.5