Search found 203 matches

by matrix
16 Dec 2022 18:00
Forum: mikroC PRO for PIC Wish List
Topic: R0,R1,R2...................R20 global variables
Replies: 3
Views: 2635

Re: R0,R1,R2...................R20 global variables

Hi, I'm using PIC16F1829. For some reason I had to move R0..R15 registers to different address space instead of 0x70..0x7F. I choose 0x40..0x4F region. And all went fine. Until yesterday, when I found that my function to convert string to int returns wrong results. I found, that this behavior is cau...
by matrix
24 Jun 2018 14:24
Forum: Visual TFT General
Topic: Riverdi Display 3.5" Settings
Replies: 3
Views: 2545

Re: Riverdi Display 3.5" Settings

Hi MikroE, Finally, I found the problem. It is in void InitVTFTStack(); . Theese two lines: FT800_Core_ClockSource(_FT800_CLK_SOURCE_EXTERNAL); FT800_Core_ClockPLL(_FT800_CLK_PLL_48MHz); Should be last lines, NOT immediately after FT800_Init(); , like code generator does it. Working code: void InitV...
by matrix
15 Jun 2018 13:49
Forum: Visual TFT General
Topic: Riverdi Display 3.5" Settings
Replies: 3
Views: 2545

Re: Riverdi Display 3.5" Settings

Hi, here's the display:
riverdi3.5.jpg
riverdi3.5.jpg (537.04 KiB) Viewed 2517 times
by matrix
13 Jun 2018 08:33
Forum: Visual TFT General
Topic: Riverdi Display 3.5" Settings
Replies: 3
Views: 2545

Riverdi Display 3.5" Settings

Hi,

Can anybody share correct VTFT Settings for Riverdi Display 3.5". https://www.mikroe.com/riverdi-35-no-touch
I have all 3.5'', 4.3'', 5'' and 7'' Riverdi displays with resistive touch.
All exept 3.5'' works fine.
Riverdi Display 3.5" just lights white, but touch works.

Best Regards,
Rado
by matrix
09 Jun 2018 13:02
Forum: Visual TFT General
Topic: Riverdi 2.83 UXB Settings
Replies: 9
Views: 9738

Re: Riverdi 2.83 UXB Settings

Same issue with Riverdi 3.5''. Any news?
by matrix
17 Nov 2015 17:49
Forum: mikroPascal PRO for ARM General
Topic: fsmc driver for ARM Pascal (stm32f4)
Replies: 35
Views: 31471

Re: fsmc driver for ARM Pascal (stm32f4)

FSMC useless with Mikromedia and Mikromedia Plus based on STM32F407. Congratulations Mikroelektronika Team! Six posts above I've posted working source code: http://www.mikroe.com/forum/viewtopic.php?f=189&t=55788&p=264544#p231712 Feel free to use it... :) It's not so hard to read some manuals and w...
by matrix
09 Oct 2015 07:47
Forum: mikroC PRO for ARM General
Topic: How to use differents pins from a port.
Replies: 5
Views: 2449

Re: How to use differents pins from a port.

Ye, in Pascal too.
In C member must be a constant only.....
by matrix
07 Oct 2015 14:05
Forum: mikroC PRO for ARM General
Topic: How to use differents pins from a port.
Replies: 5
Views: 2449

Re: How to use differents pins from a port.

Code: Select all

void set_ini(unsigned long* port,char pin_mask,char state)
{
  if (state)
    *port |= (unsigned long)state << pin_mask;
  else
    *port &= ~((unsigned long)!state << pin_mask);
}
by matrix
29 Jun 2015 09:21
Forum: mikroC PRO for ARM General
Topic: STM32F070 USB HID support
Replies: 1
Views: 2218

STM32F070 USB HID support

So.... As still there isn't support for STM32F070 in mikroC, I've try to start thic MCU with support for STM32F072. Compiled code for 072 works fine on 070, exept... USB.... These two MCU's are little bit different in clock source system. 072 have internal 48 MHz osc. For some reason, HID_Enable(&Hi...
by matrix
18 Feb 2015 16:12
Forum: mikroC PRO for ARM General
Topic: MikroC Pro for Arm v4.5.0 issue
Replies: 19
Views: 8353

Re: MikroC Pro for Arm v4.5.0 issue

Another issue:

If we use case sensitive option, then linker cann't link (un)signed long long.
case_sens_bug_450.jpg
case_sens_bug_450.jpg (250.8 KiB) Viewed 5962 times
Workaround: Open __Lib_Math.emcl and change the name of functions... (not a good solution, cos some other libraries then cann't be used...)
by matrix
17 Dec 2014 17:24
Forum: mikroC PRO for PIC32 General
Topic: ETHERNET PIC32: void Net_Ethernet_Intern_SetPHYInit(...);
Replies: 5
Views: 3054

Re: ETHERNET PIC32: void Net_Ethernet_Intern_SetPHYInit(...)

Finnaly, I got it working, it was a simple delay issue: Code is ported from FreeRTOS emacDP83848.c. You can use it with Microchip ETHERNET STARTER KIT. Use it in this way: phy_InitPHYPins(true); Net_Ethernet_Intern_SetPHYInit(&phy_Init_DP83848); Net_Ethernet_Intern_Init(myMacAddr, myIpAddr, Net_Eth_...
by matrix
16 Dec 2014 14:18
Forum: mikroC PRO for PIC32 General
Topic: ETHERNET PIC32: void Net_Ethernet_Intern_SetPHYInit(...);
Replies: 5
Views: 3054

Re: ETHERNET PIC32: void Net_Ethernet_Intern_SetPHYInit(...)

OK, that's done. It was my mistake.

Can anybody help with DP83848C PHY init code for PIC32?

For now, I manage to read DP83848C_ID.
But after that ... nothing happens...
by matrix
12 Dec 2014 17:58
Forum: mikroC PRO for PIC32 General
Topic: ETHERNET PIC32: void Net_Ethernet_Intern_SetPHYInit(...);
Replies: 5
Views: 3054

Re: ETHERNET PIC32: void Net_Ethernet_Intern_SetPHYInit(...)

Hello, Using this function you can provide pointer to function which will be used to initialize the ETH PHY IC. void Phy_Init(){ // Initialization code ... } Net_Ethernet_Intern_SetPHYInit(&Phy_Init); Best regards. Yes, I already do that. But it seems this code is not called. Where, when and which ...
by matrix
11 Dec 2014 11:38
Forum: mikroC PRO for PIC32 General
Topic: ETHERNET PIC32: void Net_Ethernet_Intern_SetPHYInit(...);
Replies: 5
Views: 3054

ETHERNET PIC32: void Net_Ethernet_Intern_SetPHYInit(...);

How exactly to use:

Code: Select all

void Net_Ethernet_Intern_SetPHYInit(void(*PHYInit_Ptr)(void));
to init other PHY: DP83848C, instead of LAN8720A?

Go to advanced search