8051 >> 8051

Pages: 1
GMA
stranger


Reged: Oct 12 2007
Posts: 8
8051 Serial Support
      #30328 - Mon Oct 29 2007 09:29 PM

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.

Post Extras: Print Post   Remind Me!   Notify Moderator  
Dan HenryModerator
Guru
****

Reged: Oct 16 2003
Posts: 3210
Loc: Boulder, Colorado U.S.A.
Re: 8051 Serial Support [Re: GMA]
      #30332 - Tue Oct 30 2007 12:33 AM

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()



Post Extras: Print Post   Remind Me!   Notify Moderator  
GMA
stranger


Reged: Oct 12 2007
Posts: 8
Re: 8051 Serial Support [Re: Dan Henry]
      #30335 - Tue Oct 30 2007 08:08 AM

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.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Dan HenryModerator
Guru
****

Reged: Oct 16 2003
Posts: 3210
Loc: Boulder, Colorado U.S.A.
Re: 8051 Serial Support [Re: GMA]
      #30336 - Tue Oct 30 2007 08:22 AM

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.

Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 0 anonymous users are browsing this forum.

Moderator:  ndouglas, garth, jtemples, Dan Henry, Andrew L, Ryan, mikerj 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is enabled
      UBBCode is enabled

Rating:
Topic views: 2193

Rate this topic

Jump to

Contact Us | Privacy statement HI-TECH Software

Powered by UBB.threads™ 6.5.5