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?
bug on libraries
-
- Posts: 173
- Joined: 09 Apr 2008 12:56
Re: bug on libraries
Check that the device you are using does have a uart !!!
When all else fails .... Read the fu**ing Manual.!!
- tihomir.losic
- mikroElektronika team
- Posts: 2138
- Joined: 02 Dec 2009 14:16
- Location: Serbia
- Contact:
Re: bug on libraries
Hello,fbiasoto wrote:I can´t use UART functions because the library doesn´t appear on Library Manager.
please, tell me, which microcontroller are you using?
Thanks.
Best regards,
Losic Tihomir
mikroElektronika [Support team]
Re: bug on libraries
The microcontloler is 89C4051 and the compiler is running on windows Vista.
- tihomir.losic
- mikroElektronika team
- Posts: 2138
- Joined: 02 Dec 2009 14:16
- Location: Serbia
- Contact:
Re: bug on libraries
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
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]
Re: bug on libraries
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.
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.
- tihomir.losic
- mikroElektronika team
- Posts: 2138
- Joined: 02 Dec 2009 14:16
- Location: Serbia
- Contact:
Re: bug on libraries
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
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]
Re: bug on libraries
tihomir.losic ,
So, how can I use serial communication on 89c4051 using libraries?
So, how can I use serial communication on 89c4051 using libraries?
Re: bug on libraries
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
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
- tihomir.losic
- mikroElektronika team
- Posts: 2138
- Joined: 02 Dec 2009 14:16
- Location: Serbia
- Contact:
Re: bug on libraries
Hello,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
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]
Re: bug on libraries
I am in doubt about what library can be used in what microcontroller...
- tihomir.losic
- mikroElektronika team
- Posts: 2138
- Joined: 02 Dec 2009 14:16
- Location: Serbia
- Contact:
Re: bug on libraries
Hello,
by AT89C4051, you'll be able to use Software_UART library. Best regards,
Losic Tihomir
by AT89C4051, you'll be able to use Software_UART library. Best regards,
Losic Tihomir
mikroElektronika [Support team]