Questions tagged [microc]

MicroC/OS-II (commonly termed µC/OS-II or uC/OS-II), is the acronym for Micro-Controller Operating Systems Version 2. It is a priority-based pre-emptive real-time multitasking operating system kernel for microprocessors, written mainly in the C programming language. It is intended for use in embedded systems.

34 questions
0
votes
1 answer

"$MCLR$ is low. Processor is in reset." Error on Pic18

On this circuit and code, I tried to make a counter that when no one pass through (for example it is a passage at the metro station), there will read 1 value at RC7 lead of the processor. If someone pass through the signal change to 0. And program…
kkrgzz
  • 452
  • 4
  • 12
0
votes
2 answers

1 second delay to inverse the value of PORTB in MicroC with PIC16F887

Micro controller PIC16F887 // The task says: Write program who will invert PORTB and will make it output port and in every SECOND it will make inverse ON/OFF on the Led Diods Here is my Code : unsigned cnt ; void interrupt(){ if(TMR0IF_bit){…
Boris Dedejski
  • 287
  • 2
  • 4
  • 17
0
votes
0 answers

How to pass gathered data from gps?

I'm having a problem about my Arduino code. I'm trying to send my gathered GPS location to my web server, but instead of numbers the web server displays it as a string. Here's my Arduino GPS code: #include #include…
MerjMc
  • 1
  • 2
0
votes
1 answer

microC build failure due to struct/union required

this is my main.c program and there was a build failure due to "struct/union required". I'm using pic 13f877a microcontroller. I'll be really greatful if anyone can tell me the reason for this build failure. also there was another warning saying…
0
votes
1 answer

Change square wave generator to rectangular wave with 30% duty cycle

I have this code here for generating a square wave of 50% duty cycle and 0.1 Hz frequency with 8 MHz Fosc: BCF TRISD,7 MOVLW 0x07 MOVWF T0CON HERE MOVLW 0x67 MOVWF TMR0L MOVLW 0x69 MOVWF TMR0H BCF INTCON,TMR0IF BTG PORTD,7 BSF…
user5599592
0
votes
1 answer

How do I view the contents of a Micro PIC chip?

I am using mikroC PRO for PIC and am trying to take a snapshot of what is already flashed onto a PIC32 PIC32MX795F512L 100 Pin 512K PIC Chip. Does anyone know how to go about viewing what's already been flashed? I want to compare what's on this…
lprater1
  • 65
  • 1
  • 1
  • 7
0
votes
1 answer

Serial Ethernet Board for PIC16F887

I have microcontroller pic16f887 and serial ethernet board. When start browser i have problem - the message is this site can't be reached and i can show the content in browser. What may be the problem???? I use…
Emy
  • 79
  • 1
  • 1
  • 11
0
votes
0 answers

Drive dc-motors with analog values

I have a problem with my project and I need your hep. My project is to control a robotic arm with 4 dc motors with a PIC16F877A from a gui and "teach" them some moves. I have written the code for the movements with 8 buttons in the gui, up, down,…
N_Gorg
  • 1
0
votes
1 answer

Generating switch-case function out of State chart

Although my question is very simple I can't find an answer for it. I created a class in Rhapsody and associated a statechart to this class but when I generate the code I can't find and code in the class related to the state chart. Is there any…
Isyola
  • 130
  • 1
  • 8
0
votes
2 answers

Run multiple functions simultaneously with pic16f877a using C

I am using microC to program pic16f877a to operate motors and solenoids. I have some functions making motors move at different space times e.g. motor1 moves for 100ms, stops, moves again for 100ms etc. for 4 loops, motor2 for 200ms and so on. I want…
GiorgosM
  • 11
  • 3
0
votes
1 answer

Can't open include file in microC

I m trying write a little program for a microcontroller using microC, and I m getting this message Since I m just a beginner I m confused about what is causing this problem, in my program I have one include line #include, I commented the same error…
user4839727
0
votes
2 answers

read from Ultrasonic HC-SR04

i want to run two HC-SR04 on one PIC16F877A and send the value mesured by the two ultrasonic to serial port. this is my code using PIC C Compiler : #use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8) #define e1 PIN_B6 #define t1 pin_B7…
0
votes
1 answer

some errors in microC embedded system

we have a project we complete 60% of the program but we faced 2 problem Our first problem is to make engine should be cooling for 5 second then it should be heated for 10 second then it should stop like it not work again unless i on the switch…
student
  • 55
  • 1
  • 9
0
votes
1 answer

Car monitor system embedded project

I have embedded system project, car monitor system we work on c language on microC program. I decide to write part part and then test it my idea is when I press and release (switch0) the car will work and "power" will appear on LCD screen, then I…
student
  • 55
  • 1
  • 9
0
votes
2 answers

How to synchronize two tasks with Micro C OS II?

I have this specification: task 0 sends integer numbers (starting from 1) to task 1. Task 1 shall multiply the numbers with -1 and send them back to task 0. Task 0 shall then print these numbers to the console. For the communication between…
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424