About 10,800,000 results
Open links in new tab
  1. How to set Port as Input for Push Button in C? - Stack Overflow

    Aug 21, 2012 · I'm using MikroC to try and program my PIC16f62 Microcontroller. I've managed to get my outputs working (I can have LEDs turn on, etc) but I can't seem to get the inputs work. Here is my current code: TRISB.RB0 = 0; //set Port RB0 as output. PORTB.RB0 = 1; //set Port RB0 to high (turn on LED) TRISA = 1; //Set PORTA as inputs .

  2. Analog I/O C Example - Mosaic Industries

    C language example program shows input and output of voltage using an Analog I/O Wildcard and Mosaic's microcontrollers.

  3. Bit examples for input/output • Create a “pulse” on bit 0 of PORTA (assume bit is initially 0) PORTA = PORTA | 0x01; //Force bit 0 to 1. PORTA = PORTA & 0xFE; //Force bit 0 to 0 • Examples: if ( (PORTA & 0x80) != 0 ) //Or: ((PORTA & 0x80) == 0x80) bob(); // call bob() if bit 7 of PORTA is 1. c = PORTB & 0x04; // mask all but bit 2 of ...

  4. PIC Microcontroller Input-Output Ports Programming in C

    Jan 2, 2024 · Simple descriptions and demonstrations on how to program the PIC Microcontroller input-output ports in C.

  5. C : Programming Microcontrollers in C - whtutorials.com

    1. Understand the memory model and working of I/O ports in microcontrollers while programming in C. 2. Master the usage of C libraries like Standard Template Library (STL) and C runtime library for efficient coding. 3. Gain proficiency in handling interrupts, timers, and communication protocols (SPI, I2C, UART) using C. 4.

  6. How to Set the Ports of a PIC Microcontroller in C

    In this article, we show how to set the ports of a PIC microcontroller in the C programming language. The ports are the pins on a microcontroller that can control inputs or outputs to the microcontroller.

  7. The Hitchhiker’s Guide to C Programming on the PIC - PIC Microcontroller

    Mar 14, 2022 · When compiling, C source files (.c) are translated and assembled into object files (.o), after which a linker combines the object files into a single binary file (.cof), suitable for programming onto a PIC’s EEPROM. To create a new source file go to File Æ New.

  8. Input/Output with PIC Microcontrollers - Microcontroller Tutorials

    Jul 31, 2017 · Learn the basics of input output for microcontrollers using the PIC16F84A. This tutorial covers how to manipulate input and output pins using ASM and C.

  9. Pic microcontroller programming in c using Mikroc Pro for PIC

    Apr 10, 2017 · MikroC Pro is an Embedded-C compiler that allows you to convert a code written in C language to machine language. MikroC Pro for Pic is used for pic microcontroller programming in c. Before learning how to program pic microcontroller in c, let first get the basic introduction on microcontrollers and pic microcontrollers.

  10. Microcontroller Embedded C Programming: Absolute Beginners

    Nov 30, 2023 · Foundation course on Embedded C programming using STM32 Microcontroller. This is our new course mainly targeted for absolute beginners to learn microcontroller programming using the ‘C ‘ programming language. Please note that “Embedded C” is NOT a separate programming language.

Refresh