Questions tagged as 'pic'

1
answer

Arduino I2C sends unexpected NACK

I am using a development board of microchip (explorer 16) with pic24f128ga010 as Master and Arduino as Slave . The PIC is sending everything right, but for some reason arduino sends NACK to all date , only sends ACK...
asked by 29.03.2015 / 18:43
2
answers

How to manipulate bitwise an integer in c or ccs?

I want to change an integer variable to bit in C / CSS to pic . Ex: change some bit to turn another number.    15 = 0b00001111 - > 0b00001101 = 13.     
asked by 21.06.2016 / 01:45
1
answer

How to use bytes from BitConverter.ToDouble

I have an interface that sends a reference value to a microcontroller. I need to send the values in bytes because these values will be stored in the memory of the microcontroller. In the interface, in C # I'm using for example: double referenc...
asked by 14.10.2015 / 21:14
2
answers

Set PIC pin as input and output with CCS?

Good afternoon, I want to switch a PIC pin set as output to the middle of the program execution, and then return the pin as output.     
asked by 04.07.2016 / 22:29
1
answer

Problem with menu + buttons + lcd

Hello. I'm having trouble making a C language program with buttons, lcd (16x2) and a PIC18F4550. Below, I've put the program description and the code I have so far, a keyboard filter and some basic pic settings. I was trying to use mult...
asked by 02.11.2015 / 19:31
0
answers

Serial Communication Error ttyS0

I am using a TTL serial communication via the terminal with an Orange Pi One and a PIC16F628A. The program that is in the microcontroller is simple: if it receives the character '1' puts a bit in high logic level, thus turning on the LED and rec...
asked by 17.04.2017 / 21:04
0
answers

Pointers to Functions [closed]

I am facing a small problem with pointers to functions in a program for Microchip Pic Series 18 microcontrollers. The code shows the prototypes of two functions involved in the problem and a call to the function 'insert_tarefa', which MUST re...
asked by 24.09.2014 / 13:50
0
answers

C - PIC recording program 18F4550 via USB

At first, I'm a layman when it comes to programming. Because of this, I am developing quick and easy programs to improve my knowledge. I have a development board for a PIC18F4550, with LEDs on the RB pins, some on the RD and RC. The buttons a...
asked by 03.07.2017 / 17:53
1
answer

How does a LED flash 1,100,000 seconds with the PIC?

I'm using MPLAB IDE to simulate a flashing LED for 1,100,000 seconds. But I can not. It always goes more or less. I wish you could give me a tip. Or some formula on how to calculate the nop and loop that I should put. LIST P=PIC16F...
asked by 07.11.2016 / 00:56
1
answer

How to create a driver to make my own usb mouse with PIC? [closed]

Hello, I'm trying to develop a mouse using a pic and instead of using an optical sensor commonly used in mice I wanted to control using accelerometers. How do I create a Windows Pro driver? Is it possible for me to communicate a PIC with a...
asked by 20.09.2016 / 19:38