Hello,
I bought an arduino MEGA 2560 board equipped with an ATMEGA2560 microcontroller.
I would like to know how you can download the software written with the micropascal compiler for avr. thank you
Search found 31 matches
- 29 Aug 2017 18:21
- Forum: mikroPascal PRO for AVR General
- Topic: How to load micropascal programs in arduino mega 2560
- Replies: 1
- Views: 1552
- 09 Jun 2014 23:32
- Forum: mikroPascal PRO for AVR General
- Topic: libstock fat32 library and SPI use for other communications
- Replies: 6
- Views: 3762
Re: libstock fat32 library and SPI use for other communicati
oldspie:=SPIE_bit; //save the flag that enable spi end trasmission interrupt portb.b3:=0;// slave select to low spie_bit:=0;//disable spi end trasmission interrupt spdr:=%01010101;//write spdr to start trasmission delay_us(30); c1:=SPSR;//read on datasheet of atmega 8 c1:=spdr;//save the received va...
- 09 Jun 2014 21:39
- Forum: mikroPascal PRO for AVR General
- Topic: libstock fat32 library and SPI use for other communications
- Replies: 6
- Views: 3762
Re: libstock fat32 library and SPI use for other communicati
Marina il ook the solution, in easy words is this: for work well before use a spi interface you must disable the end of spi trasmission interrupt use spi interface and reenable it before use a fat32 library.
bye bye
bye bye
- 13 May 2014 18:10
- Forum: mikroPascal PRO for AVR General
- Topic: libstock fat32 library and SPI use for other communications
- Replies: 6
- Views: 3762
Re: libstock fat32 library and SPI use for other communicati
I know well especially the spi onboard functions on atmel atmegaavr microcontroller and i've used sucessfully that setting of spdr in many other projects. If i write a byte in spdr register, as you can read on datasheet, start the trasmission on a spi interface and after the transmission i can read ...
- 10 May 2014 11:02
- Forum: mikroPascal PRO for AVR General
- Topic: libstock fat32 library and SPI use for other communications
- Replies: 6
- Views: 3762
Re: libstock fat32 library and SPI use for other communicati
I use atmega32 and easyavr5a this is the program: program a32; const CR_ : char = 0x0D; const LF_ : char = 0x0A; VAR bufferr:string[32]; Mmc_Chip_Select : sbit at PORTB.B2; Mmc_Chip_Select_Direction : sbit at DDRB.B2; fHandle : short; c,c1,mmc_error:BYTE; a:string[3]; aa:array[4] of char; txt : arra...
- 08 May 2014 15:51
- Forum: Libstock Discussion
- Topic: Libstock exclusive: FAT32 and Network Ethernet Libraries
- Replies: 63
- Views: 720549
Re: Libstock exclusive: FAT32 and Network Ethernet Libraries
Hi, I'm using the fat32 libstock library routines to write a file on an sd card and everything is ok, but if I add in the program setting spdr for communication via spi with other devices happens that new program write operations on files are not complete and more precisely "mmc_error : = FAT32_Writ...
- 08 May 2014 14:11
- Forum: mikroPascal PRO for AVR General
- Topic: libstock fat32 library and SPI use for other communications
- Replies: 6
- Views: 3762
libstock fat32 library and SPI use for other communications
Hi, I'm using the fat32 libstock library routines to write a file on an sd card and everything is ok, but if I add in the program setting spdr for communication via spi with other devices happens that new program write operations on files are not complete and more precisely "mmc_error : = FAT32_Writ...
- 28 Jun 2010 14:01
- Forum: mikroPascal PRO for AVR General
- Topic: MMC_FAT_WRITE AND MMC_WRITE TAKE LONG TIME TO WRITE
- Replies: 13
- Views: 8613
Re: MMC_FAT_WRITE AND MMC_WRITE TAKE LONG TIME TO WRITE
Hi! ...poorly written procedures probably favor safety and reliability... I think that procedures that favor safety and reliability can not be called "poorly written". ...I wrote wonder if it's possible to set some variable or release a version of the routine in which safety reliability and speed i...
- 26 Jun 2010 08:49
- Forum: mikroPascal PRO for AVR General
- Topic: MMC_FAT_WRITE AND MMC_WRITE TAKE LONG TIME TO WRITE
- Replies: 13
- Views: 8613
Re: MMC_FAT_WRITE AND MMC_WRITE TAKE LONG TIME TO WRITE
ok, ultimately using tools (routine) supplied with the compiler and the microcontroller with a clock for eight megahertz I can reach a maximum design speed in writing sd card nearly 48000 bits per second by Access in writing blocks of 512 bytes each 1/84 seconds (about 11 milliseconds) and can reach...
- 13 Jun 2010 12:37
- Forum: mikroPascal PRO for AVR General
- Topic: MMC_FAT_WRITE AND MMC_WRITE TAKE LONG TIME TO WRITE
- Replies: 13
- Views: 8613
Re: MMC_FAT_WRITE AND MMC_WRITE TAKE LONG TIME TO WRITE
Hi! I inspected your code and found nothing wrong considering MMC/SPI routines. Best regards Slavisa Ok, i need to inform you that in the code i sent you by mail there are some errors (i change the code many time and somethin forget to delete) but this that do not incide to check mmc/spi routines w...
- 10 Jun 2010 14:31
- Forum: mikroPascal PRO for AVR General
- Topic: MMC_FAT_WRITE AND MMC_WRITE TAKE LONG TIME TO WRITE
- Replies: 13
- Views: 8613
Re: MMC_FAT_WRITE AND MMC_WRITE TAKE LONG TIME TO WRITE
Hi! The microcontroller is a atmega 32 and the clock is 8 megahertz, in my opinion the problem is kind of software in the sense that by all the tests carried out and measures apparently the write operations management is handled in complex ways almost as if there was a sort of chace between SD memo...
- 08 Jun 2010 21:58
- Forum: mikroPascal PRO for AVR General
- Topic: MMC_FAT_WRITE AND MMC_WRITE TAKE LONG TIME TO WRITE
- Replies: 13
- Views: 8613
Re: MMC_FAT_WRITE AND MMC_WRITE TAKE LONG TIME TO WRITE
Hi! Try to set the SPI SCK to highest possible frequency. SPI1_Init_Advanced ---- > _SPI_FCY_DIV2 (Sck = Fosc/2, Master mode) Also, you can send me your project to my email: slavisa.zlatanovic@mikroe.com and I'll try to help you. Best regards Slavisa Tank you for the answer, :D Of course, I set spi...
- 08 Jun 2010 19:40
- Forum: mikroPascal PRO for AVR General
- Topic: MMC_FAT_WRITE AND MMC_WRITE TAKE LONG TIME TO WRITE
- Replies: 13
- Views: 8613
Re: MMC_FAT_WRITE AND MMC_WRITE TAKE LONG TIME TO WRITE
Hi! Try to set the SPI SCK to highest possible frequency. SPI1_Init_Advanced ---- > _SPI_FCY_DIV2 (Sck = Fosc/2, Master mode) Also, you can send me your project to my email: slavisa.zlatanovic@mikroe.com and I'll try to help you. Best regards Slavisa Tank you for the answer, :D Of course, I set spi...
- 07 Jun 2010 21:28
- Forum: mikroPascal PRO for AVR General
- Topic: MMC_FAT_WRITE AND MMC_WRITE TAKE LONG TIME TO WRITE
- Replies: 13
- Views: 8613
MMC_FAT_WRITE AND MMC_WRITE TAKE LONG TIME TO WRITE
Hello mikroe team, I'm developing a system for verifying and synthesis of physical quantities such as accelerations, initially i sample data and trasnfer it by usart serial connection to a PC to make later calculations and everything went very well, now I need to store these data on an SD and I hope...
- 30 Mar 2010 19:22
- Forum: mikroPascal PRO for AVR General
- Topic: mmc routines
- Replies: 1
- Views: 1440
Re: mmc routines
dear mikroe support team, i have to ask a question about mmc file oriented routines. i'm writeing a program that put in communication three microcontrollers plus an sd card on a spi bus. I developed first the part not including a sd card. For this first target didn't use the precompiled routines sp...