Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
try out this
char bcd2bin(char bcd_value) // Input range - 00 to 99.
{
return ((bcd_value & 0x0f) + (((bcd_value >> 4) & 0x07) * 10));
}
then use typecasting from char to int. Hope you got the idea.
Enjoy
Hi,
After reading the code you pasted I have a question where in your code "pin wakes up the controller"? there is no interrupt service routine, no watch dog timer configured? How the devices wakes up?
Hello,
The variables will be unchanged. In Sleep mode, the operation of a PIC microcontroller is suspended and the clock oscillator is switched off. The power consumption will be low how ever the status of the ports will be maintained. The device can be waked up by a watch-dog timer reset, an...
Hi,
did you checked the output of temperature sensor via multimeter or oscilloscope? did it changed when you varied the temperature. if this is working post your code or may be configuration of ADC here so that the members have a look at where you are going wrong.
Enjoy!
Hi,
Get it started and simulate your code on MPSIM and Proteus. You can start projects using assembly language and with the most basic experiment of LED blinking. With PIC16F devices be careful about the bank selection. A simpler use of MPSIM is mentioned in...
There are a lot of resources for FATFs. Have a look at the CHAN FATFs library. For nand Flash you have to read the datasheet for the specific microcontroller; have a look at Flexible static memory controller(FSMC) and FMC in datasheet. .
cheers
Well here is my I2C code. Its works perfectly on stm32f407
void I2C3_init(uint32_t I2C_baudrate)
{
I2C_InitTypeDef I2C_InitStructure;
I2C_DeInit(I2C3); // Deinit I2C3
// configure I2C3
I2C_InitStructure.I2C_ClockSpeed = I2C_baudrate; // 100kHz
I2C_InitStructure.I2C_Mode =...
Hello Guys!
I am Working with DCMI data to SDIO using STM32F4 microcontroller. In this project I have to capture image (1 Frame only) and store it to SD/MMC.
Some parameters
Pixel clock = 27Mhz
Hsync = 15.6khz
camera resolution = 720*480
Pixel format = YCbCr 4:2:2
SDIO clock = 24Mhz
DCMI...
Hi,
Go to this web http://blog.diyembedded.com/ and read tutorials. NRF24l01 has huge amount of registers to configure. Also this IC works with SPI protocol.
Enjoy!!!
Hi, have patience if you are new to this device. This happens when the hardware architecture and documentation is not fully read/understood. Any how, Read the following web pages. I hope they will help you out.
http://www.embedds.com/stm32-interrupts-and-programming-with-gcc/...
Hello,
The above code looks fine. Where is the main file? How are you sending commands to the device? There is no issue with the clock rate. Even you can read the device at 10Kb/s rate.
Enjoy!!!
Re: Connecting temperature sensor on i2c c18 and ccs
You must be aware of I2C protocol. I normally use 100Kb/s transfer rate. To do this you must read out the formula in microcontroller datasheet to set this rate. for pic18f25x i use the following function.
//some where in header file put...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.