Quantcast
Channel: Microcontrollers
Browsing all 4922 articles
Browse latest View live
↧

PIC16f18875 assembly: subroutine does not work as expected after a BTFSC

Hi, sorry, my English is not good, I'm using the Google translator. I have a problem in the flow of the program in assembly about PIC16F18875, when BTFSC gets 1 then it calls the instruction, CALL...

View Article


Digital Write for x seconds after pushbutton

Hi All, How do i write an arduino code, so that i maybe able to digitalwrite for 'x' number of seconds from a single press of a button

View Article


Image may be NSFW.
Clik here to view.

MikroC I2C problem

Hello guys i can't understand some line in mikroC i2c manual. Note : Calculation of the I²C clock value is carried out by the compiler, as it would produce a relatively large code if performed on the...

View Article

Strange interrupt behavior. XC8 V2.0 PIC16F1619

I'm having a strange problem I can't wrap my head around. It's easiest to explain with some code first. Here is a while loop that I want to use to keep the software at a certain point while my timer...

View Article

Performance of ATMega vs PIC Microcontrollers.

Hello. I'm currently developing my thesis project for which I'm using a PIC 18f2550 to do some things: - Sample 2 signals, one at 1.6kHz and the other at 3.2kHz, both with the TIMER0. - Communicate...

View Article


Cannot send data to 16x2 LCD via PIC18F45k22 Micro Controller (display...

Hello, My 16x2 LCD displays black boxes when I hook it up according to the attached wiring diagram. I am using a PIC18F45k22 development board by Mikroelectronika and using their MikroC pro for PIC...

View Article

Difference Between polling,DMA and Interrupt?

i am currently working on STM32F4 boards and i want to know the Difference Between polling,DMA and Interrupt?and which is the best way to use communication in UART,SPI,I2C? please provide me with...

View Article

How to monitor the battery level using microcontroller?

I want to know if I can use a simple voltage divider and feed it as input to the ADC pins of my microcontroller STM32L476RG in order to measure battery voltage level. Can I use the formula for voltage...

View Article


Accessing the address space/accessing more memory than your address bus will...

If an address register is smaller, in terms of bits, than the width (in bits) of the address bus, then a technique of some description is/was used, so you can use the full address space of the address...

View Article


ATmega 32 Assembly language & embedded C programming

At initially i used to work on 8051 micro controller now i shifted on Atmega 32 but i was not able to get everything from datasheet Like it would be much helpful if addressing modes for micro...

View Article

If I have to use C++, what MCU should I use?

Hi guys Some member properly know I am keen to transit to C++, so if I have to use C++, what MCU is suitable for this? I am assuming ARM?? Thanks guys!

View Article

emmc driver files using bitbanging

It is planned to use Sandisk i-NAND 7250-I with eMMC version 5.1. In this project nrf52840 in SDK 15.2.0 version is used . Since nrf52840 doesn't support MMC interface, we find it difficult to include...

View Article

ILI9163C display library

i am using arduino to control ILI9163C tft display i am using the following library https://github.com/sumotoy/TFT_ILI9163C the problem is when i use this library it makes the pin 10 go high so...

View Article


my ds1307 module drift too much ...?!

hi, i am trying to use the following DS1307 module with arduino.. View attachment 158332 i am using spark fun arduino library and i test the demo code in library.i set the rtc to pc clock with 1 sec...

View Article

Pic 12F683 Clock Question

I have used some of the 12F Picmicro range, with the option of the 31Khz int clk. But intending to use a 12F683 just curious as to why manual only specifies the range on P1 of the manual of 8Mhz to...

View Article


I tried using arduino simulation on Proteus but not working.

Please view the attached files to see if problem is in the code or the circuit. It's supposed to be a normal switch type circuit, just passing through arduino. The arduino files and circuit diagram on...

View Article

New I want the garagedoor to open as soon as I get within 5m of it.

I want the garagedoor to open as soon as I get within 5m of it. Would it be possible (moderately easy) to get a bluetooth tracker like Tile Mate to connect to an Arduino with a bluetooth shield when...

View Article


Two INTERRUPTS in Oshonsoft

Hi, I always have trouble when programming INTERRUPTS. I'm using Oshonsoft BASIC. I have examples using one INTERRUPT with TMR1 or TMR0, but now need two. HIGH and LOW 1/ When using two INTERRUPTS do I...

View Article

Idea - a more precise range finder (hacking the hc-sr04)

I have recently made an electronic ruler with a hc-sr04 ultrasonic module. The module has a transmitter and a receiver. It has two digital pins, TRIGGER and ECHO. You set TRIGGER high for over 10us,...

View Article

ADC reading polling method

I have this confusion it is generic question. I am trying to read the ADC value in polling method. It will take some time for the conversion to be complete. So do i need to wait in the loop...

View Article
Browsing all 4922 articles
Browse latest View live