bug on libraries

General discussion on mikroC PRO for 8051.
Post Reply
Author
Message
fbiasoto
Posts: 20
Joined: 12 May 2010 16:43

bug on libraries

#1 Post by fbiasoto » 12 May 2010 20:25

I can´t use UART functions because the library doesn´t appear on Library Manager.
Checking on Uses directory it seens to be a few files relating to UART library(__Lib_UART.mcl for example), but they dont show on library manager and the compiler doesn´t recognize UART1_Init(4800); function.
What should I do?

Mike Brearley
Posts: 173
Joined: 09 Apr 2008 12:56

Re: bug on libraries

#2 Post by Mike Brearley » 13 May 2010 12:17

Check that the device you are using does have a uart !!!
When all else fails .... Read the fu**ing Manual.!!

User avatar
tihomir.losic
mikroElektronika team
Posts: 2138
Joined: 02 Dec 2009 14:16
Location: Serbia
Contact:

Re: bug on libraries

#3 Post by tihomir.losic » 13 May 2010 13:03

fbiasoto wrote:I can´t use UART functions because the library doesn´t appear on Library Manager.
Hello,

please, tell me, which microcontroller are you using?

Thanks.

Best regards,

Losic Tihomir
mikroElektronika [Support team]

fbiasoto
Posts: 20
Joined: 12 May 2010 16:43

Re: bug on libraries

#4 Post by fbiasoto » 13 May 2010 13:23

The microcontloler is 89C4051 and the compiler is running on windows Vista.

User avatar
tihomir.losic
mikroElektronika team
Posts: 2138
Joined: 02 Dec 2009 14:16
Location: Serbia
Contact:

Re: bug on libraries

#5 Post by tihomir.losic » 13 May 2010 13:48

Hello,

please, look at AT89C4051 datasheet:
http://www.atmel.com/dyn/resources/prod ... oc1001.pdf
There you can see that AT89C4051 has not Universal Synchronous Asynchronous
Receiver Transmitter (USART) module, and this is the reason why library is not made.

Best regards,

Losic Tihomir
mikroElektronika [Support team]

fbiasoto
Posts: 20
Joined: 12 May 2010 16:43

Re: bug on libraries

#6 Post by fbiasoto » 13 May 2010 14:05

Thats the Features of 89c4051 got from datsheet:

Compatible with MCS®51 Products
4K Bytes of Reprogrammable Flash Memory
– Endurance: 10,000 Write/Erase Cycles
2.7V to 6V Operating Range
Fully Static Operation: 0 Hz to 24 MHz
Two-level Program Memory Lock
128 x 8-bit Internal RAM
15 Programmable I/O Lines
Two 16-bit Timer/Counters
Six Interrupt Sources
Programmable Serial UART Channel
Direct LED Drive Outputs
On-chip Analog Comparator
Low-power Idle and Power-down Modes
Brown-out Detection
Power-On Reset (POR)
Green (Pb/Halide-free/RoHS Compliant) Packaging

I have used the UART on assembly several times. I realy confused about that.

User avatar
tihomir.losic
mikroElektronika team
Posts: 2138
Joined: 02 Dec 2009 14:16
Location: Serbia
Contact:

Re: bug on libraries

#7 Post by tihomir.losic » 13 May 2010 14:24

Hello,

for example:
- AT89S8253 datasheet: http://www.atmel.com/dyn/resources/prod ... oc3286.pdf

Features:
. . . . .
• 32 Programmable I/O Lines
• Three 16-bit Timer/Counters
• Nine Interrupt Sources
• Enhanced UART Serial Port with Framing Error Detection and Automatic
Address Recognition

• Enhanced SPI (Double Write/Read Buffered) Serial Interface
• Low-power Idle and Power-down Modes
• Interrupt Recovery from Power-down Mode
• Programmable Watchdog Timer
• Dual Data Pointer
• Power-off Flag
• Flexible ISP Programming (Byte and Page Modes)
. . . . .

That you need, and AT89C4051 doesn't contain that module.

Best regards,

Losic Tihomir
mikroElektronika [Support team]

fbiasoto
Posts: 20
Joined: 12 May 2010 16:43

Re: bug on libraries

#8 Post by fbiasoto » 13 May 2010 14:39

tihomir.losic ,

So, how can I use serial communication on 89c4051 using libraries?

fbiasoto
Posts: 20
Joined: 12 May 2010 16:43

Re: bug on libraries

#9 Post by fbiasoto » 01 Sep 2010 14:23

Well, no answer...

I got this from MikroC User Manual:

SOFTWARE UART LIBRARY

The mikroC for 8051 provides routines for implementing Software UART communication.These routines are hardware independent and can be used with any MCU.


very confusing

User avatar
tihomir.losic
mikroElektronika team
Posts: 2138
Joined: 02 Dec 2009 14:16
Location: Serbia
Contact:

Re: bug on libraries

#10 Post by tihomir.losic » 01 Sep 2010 15:03

fbiasoto wrote:The mikroC for 8051 provides routines for implementing Software UART communication.These routines are hardware independent and can be used with any MCU.


very confusing
Hello,

yes, our compiler contains Software UART library.
Can you tell me which part of this thread is confusing for you?
There is no problem to give you explanation.

Best regards,

Losic Tihomir
mikroElektronika [Support team]

fbiasoto
Posts: 20
Joined: 12 May 2010 16:43

Re: bug on libraries

#11 Post by fbiasoto » 01 Sep 2010 20:07

I am in doubt about what library can be used in what microcontroller...

User avatar
tihomir.losic
mikroElektronika team
Posts: 2138
Joined: 02 Dec 2009 14:16
Location: Serbia
Contact:

Re: bug on libraries

#12 Post by tihomir.losic » 02 Sep 2010 10:38

Hello,

by AT89C4051, you'll be able to use Software_UART library.
89C4051_Soft_UART.PNG
89C4051_Soft_UART.PNG (120.72 KiB) Viewed 6213 times
Best regards,

Losic Tihomir
mikroElektronika [Support team]

fbiasoto
Posts: 20
Joined: 12 May 2010 16:43

Re: bug on libraries

#13 Post by fbiasoto » 03 Sep 2010 14:52

Okay, thanks

Post Reply

Return to “mikroC PRO for 8051 General”