Search found 27 matches
- 24 Jul 2013 13:36
- Forum: mikroC PRO for AVR General
- Topic: Optimizing access to the bit port
- Replies: 4
- Views: 2269
Re: Optimizing access to the bit port
Thanks, it worked!
- 19 Jul 2013 02:04
- Forum: mikroC PRO for AVR General
- Topic: Optimizing access to the bit port
- Replies: 4
- Views: 2269
Re: Optimizing access to the bit port
I mean, the compiler converts all commands PORTy.Bx in a sequence of three asm instructions instead of one that takes up more memory and takes longer. Why is it done?
The same problem with PINy.Bx
The same problem with PINy.Bx
- 17 Jul 2013 15:42
- Forum: mikroC PRO for AVR General
- Topic: Optimizing access to the bit port
- Replies: 4
- Views: 2269
Optimizing access to the bit port
operator why such PORTB.B4 = 1, implemented
And not one team
?
Code: Select all
IN R27, PORTB +0
SBR R27, 16
OUT PORTB +0, R27
Code: Select all
CBI 0x18, 4
- 20 Jan 2013 02:37
- Forum: mikroC PRO for ARM General
- Topic: mikroC ARM V3.0 and ST Standard Peripherals Library
- Replies: 34
- Views: 27385
Re: mikroC ARM V3.0 and ST Standard Peripherals Library
STM Test does not compil, much syntax error...
update stdint.h - yes.
example:
update stdint.h - yes.
example:
- 03 Oct 2012 03:03
- Forum: mikroC PRO for ARM General
- Topic: USB on STM32-P103
- Replies: 2
- Views: 2906
Re: USB on STM32-P103
Hi!
In stm32f103 for interruption USB it is necessary to use IVT_INT_USB_LP_CAN_RX0, all works.
All thank.
In stm32f103 for interruption USB it is necessary to use IVT_INT_USB_LP_CAN_RX0, all works.
All thank.
- 02 Oct 2012 05:41
- Forum: mikroC PRO for ARM General
- Topic: USB on STM32-P103
- Replies: 2
- Views: 2906
Re: USB on STM32-P103
Hi!
This board requires PORTC bit11 in 0, after example has works.
But example with interruption IVT_INT_OTG_FS is not compiled.
This board requires PORTC bit11 in 0, after example has works.
But example with interruption IVT_INT_OTG_FS is not compiled.
- 29 Sep 2012 03:33
- Forum: mikroC PRO for ARM General
- Topic: USB on STM32-P103
- Replies: 2
- Views: 2906
USB on STM32-P103
Try to start USB HID (standart example) on STM32-P103 (stm32f103rb) Computer does not see device But example with interruption USB in general is not compiled. error "IVT_INT_OTG_FS" These examples orderly work with STM32F4DISCOVERY USB works in STM32-P103, it is checked on example "STM32-P103-USBMou...
- 28 Sep 2012 12:45
- Forum: mikroC PRO for ARM General
- Topic: FAT and SPI2 in stm32
- Replies: 7
- Views: 4315
Re: FAT and SPI2 in stm32
We beg pardon, found the problem...
When feeding voltage decreased from external source and its came short for card, when feeding from USB have earned all cards.
When feeding voltage decreased from external source and its came short for card, when feeding from USB have earned all cards.
- 28 Sep 2012 09:53
- Forum: mikroC PRO for ARM General
- Topic: FAT and SPI2 in stm32
- Replies: 7
- Views: 4315
Re: FAT and SPI2 in stm32
But this card orderly works with Mmc_Fat_Init() on spi1!
- 28 Sep 2012 07:52
- Forum: mikroC PRO for ARM General
- Topic: FAT and SPI2 in stm32
- Replies: 7
- Views: 4315
Re: FAT and SPI2 in stm32
Has tested with other SDcard "MyFlash" 1G - Testing OK!
Tested first SDcard "Silicon Power" 2G - Testing error.
But with example "STM32-P103-MassStorage" she works
think there is problem in initialization;
Tested first SDcard "Silicon Power" 2G - Testing error.
But with example "STM32-P103-MassStorage" she works
think there is problem in initialization;
- 27 Sep 2012 09:14
- Forum: mikroC PRO for ARM General
- Topic: FAT and SPI2 in stm32
- Replies: 7
- Views: 4315
Re: FAT and SPI2 in stm32
I use board OLIMEX stm32-p103
Example for this board "STM32-P103-MassStorage" works (written in IAR)
Example for this board "STM32-P103-MassStorage" works (written in IAR)
- 26 Sep 2012 10:38
- Forum: mikroC PRO for ARM General
- Topic: FAT and SPI2 in stm32
- Replies: 7
- Views: 4315
FAT and SPI2 in stm32
Hi! MMC library for only SPI1? can not start fat on spi2 for stm32f103rb // MMC module connections sbit Mmc_Chip_Select at GPIOB_ODR.B12; // eof MMC module connections const LINE_LEN = 43; char err_txt[20] = "FAT16 not found"; char filename[14] = "MIKRO00x.TXT"; // File names char file_contents[LINE...
- 19 Sep 2012 13:04
- Forum: mikroC PRO for ARM General
- Topic: Optimization of the code
- Replies: 10
- Views: 4993
Re: Optimization of the code
dejan.odabasic
understandable, thank you
understandable, thank you
- 19 Sep 2012 08:09
- Forum: mikroC PRO for ARM General
- Topic: Optimization of the code
- Replies: 10
- Views: 4993
Re: Optimization of the code
dejan.odabasic
has redownload with site compiler mikroC_PRO_ARM_2012_Build.2.50.exe ( he differs from download 22 may)
reinstall (demoversion)
creat new project
compiling....
result same ((
Can beside you other version?
Ops!
I looked file .asm But you see .lst!
Why they differ?
has redownload with site compiler mikroC_PRO_ARM_2012_Build.2.50.exe ( he differs from download 22 may)
reinstall (demoversion)
creat new project
compiling....
result same ((
Can beside you other version?
Ops!
I looked file .asm But you see .lst!
Why they differ?
- 19 Sep 2012 05:41
- Forum: mikroC PRO for ARM General
- Topic: Optimization of the code
- Replies: 10
- Views: 4993
Re: Optimization of the code
Hello, I have tested this simple code unsigned long int varlong1; void main() { varlong1 = 12345; } and ASM generated ;TestIt.c, 3 :: varlong1 = 12345; 0x02C0 0xF2430139 MOVW R1, #12345 0x02C4 0x4801 LDR R0, [PC, #4] 0x02C6 0x6001 STR R1, [R0, #0] If you have project which generates code that you p...