FAQ Database Discussion Community


Lantronix XPORT - TCP/IP tunnel to send HTTP POST requests

http,microcontroller,wireshark,pic,ethernet
I have a XPORT (TCP/IP serial tunnel device) connected to my microcontroller (PIC18), this way I can send serial messages which are transformed into TCP/IP packages. I've enabled TCP/IP packaging, so that all characters will be put in one TCP/IP package until nothing is received for a short period of...

I cannot get the led to blink 6 times, then terminate the program in C

c,pic,terminate
Why doesn't exit() work with the PIC16f877? #include <htc.h> #include <pic16f877.h> #include <stdlib.h> #define _XTAL_FREQ 4e6 int main(void){ int count; int max_count = 6; TRISD = 0xBF; for (count=0; count<max_count; ++count){ PORTD = 0x40; __delay_ms(500); PORTD = 0x00; __delay_ms(500); } exit(0); } Error message: Error [482] lab1_home.obj; 20. symbol "_exit"...

PIC 16F1788 reading voltages

c,pic,microprocessors
I am a new to PIC programming and need some advice on whether or not I am on the right track with my code. I am writing a function that reads the input values (0-5V) from port 7 and returns a voltage value based from (0-6.5V). Here is what I...

Building a drone. Using microcontroller

microcontroller,pic
I am looking for building a drone and control it by myself. I have seen a lot of kits, but they are all with the micro included and the remote control. Where can I look for some kits prepared to build it by your own? I want to use a...

connect (RS232 to USB )cable on linux

ubuntu-14.04,microcontroller,pic
I have a JDM programmer for pic microcontrollers but it came with RS232 port I have bought a RS232 to USB cable with its driver for windows only and I use xubuntu 14.04LTS I have tried dmesg and lsusb , it shows that the cable is connected But when I...

Confused with output to console, C / USB CDC / PIC18F2550

c,usb,pic,cdc
I have a problem that is probably a simple misunderstanding on my end. I have a PIC18F2550 device with a USB CDC firmware. I would like to send it a command to output something to the console every second. However, it doesn't seem to work. I put in a loop...

Led on/off using PIC 16f777a

embedded,pic,led,hi-tech-c
I am doing an exercise using push button. When the button is pressed once the led starts blinking and when it is pressed again it stops. When I tried the led is blinking on 1st press but it is not stopping on 2nd. I am using PIC16F877A MCU with HiTech...