Soft_UART

General discussion on mikroC PRO for AVR.
Post Reply
Author
Message
stari
Posts: 75
Joined: 01 Feb 2012 08:59

Soft_UART

#1 Post by stari » 03 Dec 2019 19:14

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

stari
Posts: 75
Joined: 01 Feb 2012 08:59

Re: Soft_UART

#2 Post by stari » 09 Dec 2019 12:10

Hello, me again.
Do you have any suggestion to resolve this matter?

THKS

Stari

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Soft_UART

#3 Post by filip » 09 Dec 2019 16:27

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.

stari
Posts: 75
Joined: 01 Feb 2012 08:59

Re: Soft_UART

#4 Post by stari » 10 Dec 2019 06:59

Hi
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.
Stari

stari
Posts: 75
Joined: 01 Feb 2012 08:59

Re: Soft_UART

#5 Post by stari » 22 Dec 2019 10:58

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.
OK, done.
Can you suggest me, what to do'

THKS

stari
Posts: 75
Joined: 01 Feb 2012 08:59

Re: Soft_UART

#6 Post by stari » 02 Jan 2020 09:51

Hm, i can't say THKS.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Soft_UART

#7 Post by filip » 03 Jan 2020 15:40

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.

stari
Posts: 75
Joined: 01 Feb 2012 08:59

Re: Soft_UART

#8 Post by stari » 04 Jan 2020 10:45

Hi
this is project from your samples for AVR.

Stari
Attachments
soft_uart1.zip
(9.4 KiB) Downloaded 84 times

stari
Posts: 75
Joined: 01 Feb 2012 08:59

Re: Soft_UART

#9 Post by stari » 21 Jan 2020 13:15

Thank you, Mikroelektronika.

Post Reply

Return to “mikroC PRO for AVR General”