Quantcast
Channel: Microcontrollers
Browsing all 4931 articles
Browse latest View live

PIC18F ADC using timer interrupt

Hi all, I'm very new to PIC microcontroller (PIC18F452) and ADC/DAC. I am supposed to do ADC and moving average filter to an audio signal then DAC, now I have managed to do this(without the digital...

View Article


Image may be NSFW.
Clik here to view.

STM32f103c8t6 use as accessory device for Android

Hello everyone, I want to ask does STM32f103c8t6 can be used as an accessory device for android? I want to create a project that uses Android Phone to communicate with my STM32. Instead of using...

View Article


Designing an Embedded PI Controller for Speed Control

I will appreciate your guidance in this. I'm designing an embedded PI controller using a STM32 Nucleo board. In the PWM configuration, a 0 means 0% duty and 800 means 100% duty. I'm confused about the...

View Article

Troubles getting timers to work with PIC18F24K40

It seems I'm missing something. I know the program is running since if I use a couple bytes to make a counter in the program loop I can make the led blink. It just seems that either the timers are not...

View Article

ARM Cortex/STM32/"BluePill" port configuration

Hello All, FIXED AND EDITED TO SHOW THE FIX.... Background: Pin B10 is configured to turn an LED on and A8 is configured to receive input when the button/switch is pressed. The following C code does...

View Article


Xc8 v2.00 C standard c99 versus c90 question

The statement in C90 for (i=0;i<=Card.Lenght;i++){Card.Valid += (unsigned int)(Card.Array[i+Card.Offset*Card.Lenght] == Buff_In);} simplified written ; result += (a==b); // is correct C no error....

View Article

Timing of CAN bit time is it correct

If my CAN baud rate is 500Kbps. So 1 bit time will take this amount of time 1/(500Kbps) =0.000002 bits so if the CAN frame contains 128bits then the total time to transmit is 0.000002*128 = 128uS. Am i...

View Article

AN566 method still valid?

Are using the methods outlined in picmicro AN566 for using a P.B. on GPx implementing a IOC still a valid method? The app note is 20+yrs old so just wondered if there was a updated means of using a IOC...

View Article


Help/ advice building an ARM based custom board

I am building a board for my soon-to-be startup and need some help from the community on how to approach this. My background is a software developer I work mostly with web based tech stacks but work...

View Article


What is Msps conversion in ADC

There are statements in data sheet like "Up to 1.1 Msps conversion speed in 10-bit mode" and "Up to 500 ksps conversion speed in 12-bit mode". Does this Msps is same as 1/1.1 *10^6 or 0.909 uS? So i...

View Article

Image may be NSFW.
Clik here to view.

How to interface photoelectric sensors to computer?

I am working on a project where I have to connect a photoelectric sensor to the computer. Computer should know if there is obiect or not This is my plan to connect a sensor to the computer View...

View Article

Simplifying my USART code [ char string]

Hey guys, so i created this code Code (Text): int main(void) { //    PLL_Config();     SystemCoreClockUpdate();     char string[]= "Hello World";     int i=0;...

View Article

PIC microcontroller counter

The maximum clock frequency at the T0CKI input is limited by the synchronization requirement with the internal clock. Each machine cycle (or instruction cycle) for a PIC microcontroller consists of...

View Article


GPS Satellites Visible But No Fix

Hi, I am using Quectel L86 GPS Module, I am facing following problems:- 1. GPS Satellite Fix takes more time or sometimes not at all fixing. (Even using external chip Antenna problem exists) 2. Which...

View Article

PIC18F47J13 Capture Mode?

I have never used capture mode before. I thought this was a way to capture the time difference between two events. But the datasheet says: Capture Mode In Capture mode, the CCPR4H:CCPR4L register pair...

View Article


MBM29F160

where can i find the chip MBM29F160BE? whether MBM29F160TE and MBM29F160BE works as same due to boot sector difference? can anyone suggest a solution or an alternate one? thank you.

View Article

Send Wireless Vibration sensor data to Thinngspeak using MQTT via ESP8266

Hi, I am using wireless vibration sensor which is sending data to thingspeak using esp8266 but I need to send the data to Thingspeak using MQTT broker. Any suggestions make this kind of unique way work...

View Article


Battery backup for on board RTCC on Pic 18F27J13?

I would like to add battery backup for the RTCC on a P18F27J13. What I am trying to figure is a way for the battery power not to run the pic when normal power is applied. One though I had was to have a...

View Article

Operating System Compatibility with Programming ARM - System Setup...

I'm just getting started trying to setup my first programming environment for embedded projects at home. I'm novice, so please bear with any technical-terming-torture I give you and please ask...

View Article

Q 16F690 and need of x-tal

Have this setup, 16F690 2*16LCD., connected data 4-7 on RB4-7 RC0 RS, RC1 enable Do i need x-tal on PIC to get the party going ?, Is there not an internal x-tal, Or is it another problem, Here is Main...

View Article
Browsing all 4931 articles
Browse latest View live


Latest Images