Search found 9 matches
- 10 Jan 2022 16:50
- Forum: mikroBasic PRO for PIC32 General
- Topic: Pic32MX270/170F256B can't Protect our code!
- Replies: 4
- Views: 2001
Re: Pic32MX270/170F256B can't Protect our code!
When I set the Code Protect Bits in Compiler these show correct values under the Configuration words. And when I shift to mikroProg Suit v2.90 this again show correctly "Code Protect Enabled" as I expected. But when I program the chip and read it back it shows "Code Protect Disabled" And all the cod...
- 04 Jun 2012 23:27
- Forum: mikroBasic PRO for ARM General
- Topic: How to use a button ??
- Replies: 5
- Views: 4921
Re: How to use a button ??
If the button is connected to PORTA.0 and LED at PORTD.13 then this code must run: program LED_Key dim i as longword main: GPIO_Clk_Enable(@GPIOA_Base) GPIO_Clk_Enable(@GPIOD_Base) GPIO_Set_Pin_Mode(@GPIOA_Base, _GPIO_Pin_0, _GPIO_CFG_MODE_INPUT) GPIO_Set_Pin_Mode(@GPIOD_Base, _GPIO_Pin_13, _GPIO_CF...
- 04 Jun 2012 22:59
- Forum: mikroBasic PRO for ARM Beta Testing
- Topic: Precedure TFT_Init_ILI9340 with STM32
- Replies: 5
- Views: 10727
Re: Precedure TFT_Init_ILI9340 with STM32
Hi Dear, When I draw a few graphics in Visual TFT selecting ILI9340 as TFT type. I find lines similar to this: ' TFT module connections dim TFT_16bit_DataPort_Hi as char at Todo TFT_16bit_DataPort_Lo as char at Todo TFT_16bit_DataPort_Hi_Direction as char at Todo ......... TFT_16bit_Set_Pen(CL_WHITE...
- 01 Jun 2012 17:00
- Forum: mikroBasic PRO for ARM Beta Testing
- Topic: Precedure TFT_Init_ILI9340 with STM32
- Replies: 5
- Views: 10727
Re: Precedure TFT_Init_ILI9340 with STM32
Hi Dear, Yes I have received email. Thanks for support. Although I was in need of further help. In the example file I received, the connections of TFT's 16 datalines were all bound to PortD of STM32. On my boards the 16 data lines of TFT are connected to two ports. Low eight bits to PortC-Pin0-7 and...
- 01 Jun 2012 10:32
- Forum: mikroBasic PRO for ARM General
- Topic: Multiple IFs
- Replies: 3
- Views: 2297
Re: Multiple IFs
Yes you are right. And there is another way perhaps simpler If MachineMode=Stoped Then ' donot check temperature sensor goto skip1 End if If SensorError=1 Then ' indicate sensor error message goto skip1 end if If Temperature<20 Then ' indicate temperature low message goto skip1 End if ' show tempera...
- 01 Jun 2012 10:13
- Forum: mikroBasic PRO for ARM General
- Topic: Multiple IFs
- Replies: 3
- Views: 2297
Re: Multiple IFs
Thanks for support. I shall implement it as you suggested.
- 31 May 2012 23:34
- Forum: mikroBasic PRO for ARM General
- Topic: Multiple IFs
- Replies: 3
- Views: 2297
Multiple IFs
Is multiple IFs possible with Mikrobasic. Like this (just a virtual example): If MachineMode=Stoped Then ' donot check temperature sensor ElseIf SensorError=1 Then ' indicate sensor error message ElseIf Temperature<20 Then ' indicate temperature low message Else ' show temperature value on LCD End i...
- 31 May 2012 23:02
- Forum: mikroBasic PRO for ARM General
- Topic: How to use a button ??
- Replies: 5
- Views: 4921
Re: How to use a button ??
How to use a button i'm learning how to use a button to turn off the led but i have difficulties my processor is STM32F407VG my board is STM32F4-DISCOVERY My button is at the port A pin 0 My led is at the port D pin 13 i've tried use this: GPIO_Clk_Enable(@GPIOA_Base) ' Enable GPIO clocks first GPIO...
- 31 May 2012 20:44
- Forum: mikroBasic PRO for ARM Beta Testing
- Topic: Precedure TFT_Init_ILI9340 with STM32
- Replies: 5
- Views: 10727
Precedure TFT_Init_ILI9340 with STM32
Has any one used builtin command TFT_Init_ILI9340 on STM32 system? when I compile, the compiler raises "identifier TFT_Init_ILI9340 was not declared" error?