Search found 58 matches

by rayhall
09 May 2010 03:46
Forum: mikroPascal PRO for AVR General
Topic: UART Data Incorrect
Replies: 3
Views: 2435

Re: UART Data Incorrect

Marcel,

Thanks for the reply, but it made no difference. :(
by rayhall
08 May 2010 07:58
Forum: mikroPascal PRO for AVR General
Topic: UART Data Incorrect
Replies: 3
Views: 2435

UART Data Incorrect

I am having problems getting serial data correct. I am using the Mega2561 at 11,059200 Mhz I send 31 bytes that end with $7E. I recive back only the first two bytes then the $7E byte. Below is my code. Ray. ******* Sent Data ******** 24 1A 00 80 A3 07 00 35 01 35 01 E2 01 38 00 99 01 66 02 0A 02 00 ...
by rayhall
08 May 2010 01:47
Forum: mikroPascal PRO for dsPIC30/33 and PIC24 General
Topic: UART Data not correct
Replies: 1
Views: 2009

UART Data not correct

I am having problems getting serial data correct. I am using the Mega2561 at 11,059200 Mhz I send 31 bytes that end with $7E. I recive back only the first two bytes then the $7E byte. Below is my code. Ray. ******* Sent Data ******** 24 1A 00 80 A3 07 00 35 01 35 01 E2 01 38 00 99 01 66 02 0A 02 00 ...
by rayhall
29 Apr 2010 09:15
Forum: mikroPascal PRO for AVR General
Topic: UART and AT90CAN128
Replies: 5
Views: 3832

Re: UART and AT90CAN128

Ken,

Yes the code does not work in the real world with the AT90CAN128. It does work if I use a MEGA2561 in place of the AT90CAN128.

Yes UART is ticked in the Library list.

Ray.
by rayhall
28 Apr 2010 05:04
Forum: mikroPascal PRO for AVR General
Topic: UART and AT90CAN128
Replies: 5
Views: 3832

Re: UART and AT90CAN128

Changed from the AT90CAN128 to ATMEGA2561 and the same code works. That is a bug in my books. I have not used MikroPascal for about a year. My first attempt to use it again, I get a bug. Does anyone actually test all the features when adding support for micro's. I do not think so. I see the support ...
by rayhall
26 Apr 2010 08:16
Forum: mikroPascal PRO for AVR General
Topic: UART and AT90CAN128
Replies: 5
Views: 3832

UART and AT90CAN128

I cannot get the UART to work on the AT90CAN128. My hardware is okay, as code written in Bascom or AVRco works. This is my test code. I even tried adding UCSR1B.3:= 1; but it made no difference. Ray. program UARTtest; { Declarations section } begin { Main program } UART1_Init(9600); Delay_ms(100); w...
by rayhall
24 Jul 2009 07:13
Forum: mikroPascal PRO for AVR General
Topic: Unwanted data sent.
Replies: 3
Views: 3031

Unwanted data sent.

With the code below I get unwanted data sent. Why is this. Ray. http://www.tfelectronics.com.au/bin/UartProblem.png program UARTtestMega88; { Declarations section } var Dataready: Boolean; Comtask: Byte; Bytex: Byte; {------------------------ UART Interrupt ------------------------} procedure UartIn...
by rayhall
24 Jul 2009 06:49
Forum: mikroPascal PRO for AVR General
Topic: Uart Interrupt only works one time
Replies: 6
Views: 5037

There is a bug that will not let you declare variables in the interrupt procedure. By declaring "Bytex" globally, it works, yet if you look at JPC's code you will see he declares three variables and claims his code works. I have used the MikroPascal compilers before and had to use other compilers du...
by rayhall
22 Jul 2009 08:26
Forum: mikroPascal PRO for AVR General
Topic: Uart Interrupt only works one time
Replies: 6
Views: 5037

JPC, thank you for the reply. I have attempted to use your code, but get too many compile errors. It is too complex to modify your four uart interrupt code to suit the Mega88. If I am doing something wrong. Then what is wrong with this code. Ray. program UARTtestMega88; { Declarations section } var ...
by rayhall
20 Jul 2009 08:21
Forum: mikroPascal PRO for AVR General
Topic: Uart Interrupt only works one time
Replies: 6
Views: 5037

This is from the data sheet. According to this I must read the data to clear interrupt flag. 18.7.3 Receive Compete Flag and Interrupt The USART Receiver has one flag that indicates the Receiver state. The Receive Complete (RXCn) Flag indicates if there are unread data present in the receive buffer....
by rayhall
19 Jul 2009 06:38
Forum: mikroPascal PRO for AVR General
Topic: Uart Interrupt only works one time
Replies: 6
Views: 5037

Uart Interrupt only works one time

If I send a byte, it outputs the 'Got it..' The next byte I send I get no reply. Ray. program UARTtestMega88; { Declarations section } var Dataready: Boolean; Comtask: Byte; {------------------------ UART Interrupt ------------------------} procedure UartInterrupt; org IVT_ADDR_USART__RX; // Uart In...
by rayhall
14 Jul 2009 00:27
Forum: mikroPascal PRO for AVR General
Topic: Reading eeprom real values
Replies: 3
Views: 2943

Thank you.

Ray.
by rayhall
13 Jul 2009 10:21
Forum: mikroPascal PRO for AVR General
Topic: Reading eeprom real values
Replies: 3
Views: 2943

Okay, my tests show it only reads the first byte. So how do you read all four bytes to get the real value.

Ray.
by rayhall
12 Jul 2009 10:15
Forum: mikroPascal PRO for AVR General
Topic: Reading eeprom real values
Replies: 3
Views: 2943

Reading eeprom real values

I want to read real values from the eeprom. This code compiles okay, but is the variable loaded with all four bytes, or just the first.

Code: Select all

Var
RPMscale: Real;

RPMscale:= EEPROM_Read(0x0022);
by rayhall
24 Aug 2008 09:05
Forum: mikroPascal for AVR General
Topic: Any News On Latest Updated Version
Replies: 30
Views: 29360

Marko, I have not looked at or posted on this forum for one year. I can see that nothing has changed. No support and no interest in fixing the problems with the software/compiler. To say that the update for the Pascal AVR compiler is been held up because of all the compilers are getting an update is...

Go to advanced search