Questions tagged [mikroc]

mikroC PRO for PIC is a full-featured ANSI C compiler for PIC devices from Microchip®.

126 questions
1
vote
1 answer

STM32F107 UART Bootloader mikroC

I try to adopt the UART Bootloader from mikroelektronika, written for the STM32F051r8 (https://www.st.com/resource/en/datasheet/stm32f051r8.pdf) to a STM32F107VCT7 (https://www.mouser.de/datasheet/2/389/CD00220364-490297.pdf) Here is the original…
guenthernagel
  • 73
  • 1
  • 3
  • 14
1
vote
2 answers

How to create a timer/clock that can send its value back,stored in a variable, ONLY made with delays in C & on mikroC

As a C beginner, I struggle alot to solve this problem of mine : I am working on a project where I basicly have to program a PIC (microchip) in C using the mikroC platform. What I'm trying to achieve is with only one switch/button, I'll have to…
1
vote
0 answers

Shift left command in LCD not working properly

So I'm writing a program in MikroC that prints a text on a LCD and shifts it every 13 ms right. When the text is fully shifted to the right it shifts it to the left and it goes like that back and forth whenever the first interrupt is handled. On the…
David Mason
  • 121
  • 1
  • 7
1
vote
2 answers

What is Nested Calls Limitations in MikroC?

I want to know what is the Nested Calls Limitations. I am using MikroC for PIC programming. It says following limitations, mikroC PRO for PIC limits the number of non-recursive nested calls to: 8 calls for PIC12 family, 8 calls for PIC16…
Ind
  • 377
  • 2
  • 6
  • 16
1
vote
1 answer

How to define Rb0 to Rb6 = hex (x%10); // no Rb7 pin

Using MikroC Pro for PIC16f73 to multiplexing 7 segment the written program is: PORTB = Hex (x%10); There PORTB means RB0 to RB7 total 8 pins are includes, but I want to use only 7 pins for 7 segments RB0 to RB6, and the pin RB7 as other O/P just 0…
Omar
  • 11
  • 2
1
vote
1 answer

STM32 maximum interrupt handling frequency

I am trying to implement my own SPI communication from FPGA to STM in which my FPGA serve as MASTER and generate Chip enable and clock for communication. FPGA transmit data at its rising edge and receive data at its falling edge my FPGA code works…
Atif Javed
  • 33
  • 1
  • 5
1
vote
1 answer

STM32 blinky example does not work

Here is a "simplified blinky" example from MikroC meant to toggle the user LED at a rate that is visible to the naked eye: void main() { GPIO_Clk_Enable(&GPIOA_BASE); GPIO_Digital_Output(&GPIOA_BASE, _GPIO_PINMASK_5); GPIOA_ODR |=…
TomServo
  • 7,248
  • 5
  • 30
  • 47
1
vote
1 answer

HOW can i convert compiled program (hex) to code line?

I have only a compiled binary code (.hex) of pic microcontroller,how can i convert it to code line in mikroc in order to see the instruction of program?
1
vote
1 answer

ADC_READ not maxed out

I am running a microcontroller in Proteus with its integrated ADC (10bit output) and a LCD display, yet when inputing a signal of 5V, it will only display up to 4092mV, even though the LCD is perfectly fine because I tried outputing other…
Téo ORIOL
  • 57
  • 7
1
vote
1 answer

LED 8x8 Matrix with MAX7219 on ARM STM32 MikroC

I would like to send some data to display it on LED 8x8 matrix which has MAX7219 chip on it. My MCU is ARM STM32F4 and I'm using MikroC as develop tool to program this peripheral. I am total beginner to this way of programming, so I would like to…
luka032
  • 925
  • 4
  • 12
  • 34
1
vote
1 answer

PORTB of PIC18F452 not working

I am trying an example available in the MikroC pro for PIC compiler which writes and reads some bits from the EEPROM, and displays the results on the LEDs attached to the PIC18F452 MCU. The code is written in C. And I am simulating all this in…
Mohsin Anees
  • 698
  • 2
  • 9
  • 25
1
vote
2 answers

PIC18F4550 USB without external crystal

Is it possible to use USB on pic18f4550 without an external crystal? I'm trying to run "HID Read Write Interrupt" example (from mikroC) but I don't have an oscillator (I have tic 3.579545mf which seems to be of no help). How can I configure my…
grabantot
  • 2,111
  • 20
  • 31
1
vote
2 answers

Time function sometimes works sometimes doesn't

So I am trying to make a time function that counts down. It's based on something I saw here. The variables are given from a different function. Once time runs out the variable finish is turned to 1 and it leaves the function. This function works…
1
vote
0 answers

MikroC code for sonar sensor possible bug?

I am using three sonar sensors in my robotic project and they seem to freeze after functioning for a few seconds. I don't think it is any hardware fault. Can anyone check my code below and tell if anything is…
Padmal
  • 458
  • 5
  • 15
1
vote
1 answer

How to Generate PWM with delay?

I am implementing an isolated boost converter. I have to generate a PWM signal for the switches given in the figure below. I have difficulty understanding the pattern. The PWM pattern is as follows: At the beginning all four switches are kept on,…
Misal313
  • 169
  • 2
  • 8
  • 23
1
2
3
8 9