Why it is made with constand and not Var?
Where is the benefit?
Why not only the delay Version with Variable?
Are the Nachteile Disadvantages?
Search found 399 matches
- 05 Nov 2023 20:34
- Forum: mikroPascal PRO for AVR Wish List
- Topic: Delay_us() and Delay_ms() only take constant parameters
- Replies: 9
- Views: 6240
- 30 Oct 2023 21:52
- Forum: mikroPascal PRO for AVR General
- Topic: var instead of const
- Replies: 1
- Views: 290
var instead of const
If i try this Function LED_Blink(const i : Word):BYTE; Begin Led_Status := not Led_Status; delay_ms(i); result:=0; end; I got the message "45 304 Syntax error: Expected "constant expression" but "complex expression" found RTC_DS3234.mpas 45 305 Argument is out of range "i. Argument must be greater t...
- 23 Oct 2023 09:49
- Forum: ARM PRO Compilers
- Topic: How do I find Alternative Parameters in Compiler?
- Replies: 5
- Views: 373
Re: How do I find Alternative Parameters in Compiler?
Perhaps, I have expressed myself unclearly.
It is not about an error.
I just want to know how to display all possible parameters that are available, since there is still no ready manual for mikroeC for Arm, for example.
It is not about an error.
I just want to know how to display all possible parameters that are available, since there is still no ready manual for mikroeC for Arm, for example.
- 11 Oct 2023 22:14
- Forum: mikroPascal PRO for ARM General
- Topic: Solved STM32F103C8 Blupill Interrupt on Pin B.1
- Replies: 1
- Views: 235
Solved STM32F103C8 Blupill Interrupt on Pin B.1
It's not really ready, but for another beginner maybe a big help to toggle a LED on PC.13 from Bluepill with Interrupt on PIN B.1 program STM32F103V8_16x2; { Declarations section } { Declarations section } procedure ExternerInterrupt(); iv IVT_INT_EXTI1; ics ICS_AUTO; Begin DisableInterrupts(); GPIO...
- 11 Oct 2023 22:11
- Forum: mikroC PRO for ARM General
- Topic: Interrupt on in B1? ON Bluepill STM32F103
- Replies: 1
- Views: 188
Re: Interrupt on in B1? ON Bluepill STM32F103
Now it works program STM32F103V8_16x2; { Declarations section } { Declarations section } procedure ExternerInterrupt(); iv IVT_INT_EXTI1; ics ICS_AUTO; Begin DisableInterrupts(); GPIOC_ODR := 0x0000; // Setze Port C auf 0; EXTI_PR := 0x0000001A; //Pending register zurücksetzen EnableInterrupts(); en...
- 11 Oct 2023 19:25
- Forum: mikroC PRO for ARM General
- Topic: Interrupt on in B1? ON Bluepill STM32F103
- Replies: 1
- Views: 188
Interrupt on in B1? ON Bluepill STM32F103
Hallo, does anybody have an Example, how I can initialize an external Interrupt with STM32F103 Bluepill on PIN B1? At this moment I try with this procedure Event(); iv IVT_INT_EXTI1; ics ICS_AUTO; begin GPIOC_ODR := not GPIOC_ODR; // Toggle PORTC delay_ms(100); end; RCC_APB2ENR.AFIOEN := 1; // Enabl...
- 11 Oct 2023 16:34
- Forum: mikroPascal PRO for ARM General
- Topic: Something wrong in Compiler?
- Replies: 3
- Views: 304
Re: Something wrong in Compiler?
But it's an Typed constant, not an normal constant.
This normaly work in Pascal:-)
https://stackoverflow.com/questions/324 ... -constants
This normaly work in Pascal:-)
https://stackoverflow.com/questions/324 ... -constants
- 07 Oct 2023 20:29
- Forum: mikroPascal PRO for ARM General
- Topic: WHY ADC_read not work in this combination?
- Replies: 1
- Views: 200
Re: WHY ADC_read not work in this combination?
Oh, the failure was
4096, correct is 4096.0
This is correct
Floattostr(((ADC1_Get_Sample(1) / 4096.0)*3.3),adc_value_str);
4096, correct is 4096.0
This is correct
Floattostr(((ADC1_Get_Sample(1) / 4096.0)*3.3),adc_value_str);
- 07 Oct 2023 19:58
- Forum: mikroPascal PRO for ARM General
- Topic: WHY ADC_read not work in this combination?
- Replies: 1
- Views: 200
WHY ADC_read not work in this combination?
adc_value is real/float
This doesn't work
OR this
This works
Why, dos the first one always show 0?
This doesn't work
Code: Select all
adc_value :=(ADC1_Get_Sample(1) / 4096)*3.3;
Code: Select all
Floattostr(((ADC1_Get_Sample(1) / 4096)*3.3),adc_value_str);
Code: Select all
adc_value := ADC1_Get_Sample(1);
adc_value :=(adc_value / 4096)*3.3;
- 06 Oct 2023 13:00
- Forum: ARM PRO Compilers
- Topic: How do I find Alternative Parameters in Compiler?
- Replies: 5
- Views: 373
Re: How do I find Alternative Parameters in Compiler?
Vielleicht, habe ich mich undeutlich ausgedrückt.
Es handelt sich nicht um einen Fehler.
Es geht mir nur darum, wie ich alle möglichen Parameter angezeigt bekomme die vorhanden sind, da es immer noch kein fertiges manual für mikroeC for Arm gibt z.B.
Es handelt sich nicht um einen Fehler.
Es geht mir nur darum, wie ich alle möglichen Parameter angezeigt bekomme die vorhanden sind, da es immer noch kein fertiges manual für mikroeC for Arm gibt z.B.
- 05 Oct 2023 18:49
- Forum: mikroC PRO for ARM General
- Topic: Mikro Failure? :-( LCD Work only in While loop
- Replies: 3
- Views: 223
Re: Mikro Failure? :-( LCD Work only in While loop
I hate C so much!!
This was the failure
Lcd_Init;
it must be
Lcd_Init();
This was the failure
Lcd_Init;
it must be
Lcd_Init();
- 05 Oct 2023 17:34
- Forum: mikroC PRO for ARM General
- Topic: Mikro Failure? :-( LCD Work only in While loop
- Replies: 3
- Views: 223
--
---
- 05 Oct 2023 16:31
- Forum: mikroC PRO for ARM General
- Topic: Mikro Failure? :-( LCD Work only in While loop
- Replies: 3
- Views: 223
---
---
- 05 Oct 2023 16:22
- Forum: mikroC PRO for ARM General
- Topic: Mikro Failure? :-( LCD Work only in While loop
- Replies: 3
- Views: 223
Mikro Failure? :-( LCD Work only in While loop
If I try this with an 16x2 LCD, sometimes there are some signs on screen, wrong space, wrong signs etc. LCD_CMD(LCD_CLEAR) doesn't work at all, only in While loop?! But put I drive the LCD in While, it woks all fine, but only aber 2 or three loops?!?! WHY? In Mikroe PAscal all works fine, same Contr...
- 02 Oct 2023 14:04
- Forum: ARM PRO Compilers
- Topic: How do I find Alternative Parameters in Compiler?
- Replies: 5
- Views: 373
How do I find Alternative Parameters in Compiler?
With Strg+D I can get a Paramter list vor many, BUT GPIO_Digital_Output(@GPIOA_BASE, _GPIO_PINMASK_ALL); // Set PORTA as digital output GPIO_Alternate_Function_Enable(@_GPIO_MODULE_SPI3_PB345); GPIO_Alternate_Function_Enable(@_GPIO_MODULE_SWJ_JTAGDISABLE ); If I NOW go to @_Gpioxxxx and press Contro...