Hi,
i tested your example Soft_UART, but i get error:
78 438 Call signature does not match the function definition signature 'Delay_Cyc' __Lib_SoftUART.mpas
What can i do to resolve this ?
THKS
Dusan
Soft_UART
Re: Soft_UART
Hello, me again.
Do you have any suggestion to resolve this matter?
THKS
Stari
Do you have any suggestion to resolve this matter?
THKS
Stari
Re: Soft_UART
Hi,
Can you attach the minimal project that demonstrates this issue ?
Which MCU are you using ?
Can you attach a screenshot of the Settings -> Output window ?
Regards,
Filip.
Can you attach the minimal project that demonstrates this issue ?
Which MCU are you using ?
Can you attach a screenshot of the Settings -> Output window ?
Regards,
Filip.
Re: Soft_UART
Hi
The project its your project, found in ProjectFolder-Development Systems-Other-Soft UART.
I work on EasyAvr board, the controller is ATMEGA328.
Stari
The project its your project, found in ProjectFolder-Development Systems-Other-Soft UART.
I work on EasyAvr board, the controller is ATMEGA328.
Code: Select all
program Soft_UART
dim error_, counter, byte_read as byte ' Auxiliary variables
main:
DDRB = 0xFF ' Set PORTB as output (error signalization)
PORTB = 0 ' No error
Soft_UART_Init(PORTD,0,1,9600,0) ' Initialize Soft UART at 14400 bps
'if (error_ > 0) then
' PORTB = error_ ' Signalize Init error
' while TRUE
' nop ' Stop program
' wend
'end if
'Delay_ms(100)
'for counter = "z" to "A" step -1 ' Send bytes from 'z' downto 'A'
' Soft_UART_Write(counter)
' Delay_ms(100)
'next counter
while TRUE ' Endless loop
byte_read = Soft_UART_Read(error_) ' Read byte, then test error flag
'byte_read = Soft_UART_Read(error)
' if (error_ <> 0) then ' If error was detected
' PORTB = error_ ' signal it on PORTB
' else
Soft_UART_Write(byte_read) ' If error was not detected, return byte read
'end if
wend
end.
Re: Soft_UART
OK, done.filip wrote:Hi,
Can you attach the minimal project that demonstrates this issue ?
Which MCU are you using ?
Can you attach a screenshot of the Settings -> Output window ?
Regards,
Filip.
Can you suggest me, what to do'
THKS
Re: Soft_UART
Hi,
I apologize for the late reply.
I have tried this in the mikroBasic for AVR 7.0.1 and got no compiling errors.
Can you please attach your project here ?
Regards,
Filip.
I apologize for the late reply.
I have tried this in the mikroBasic for AVR 7.0.1 and got no compiling errors.
Can you please attach your project here ?
Regards,
Filip.
Re: Soft_UART
Hi
this is project from your samples for AVR.
Stari
this is project from your samples for AVR.
Stari
- Attachments
-
- soft_uart1.zip
- (9.4 KiB) Downloaded 85 times