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.
perhaps this example can help you. (KEIL version)
easily adopt the library file that you need . use and enjoy!
main function is located in I2Stest.c check it out
I want to get started with uclinux.
but I didn't find any resource how to get started . how to install . how to write program ?
please introduce me a book,ebook or atleast a link .
unfortunately Interrupts occur very bad . I use gpio0.0 interrupt to switch led's on and off but switching time is so little . the interrupt occurs multiple times once I connect wire to ground
to solve it I used for(0-> 1000000) but it didn't wait resolve the problem
I used SysTick_Handler too ...
most of the times we need to work with specified bits of registers . most of the times I see in examples the use of masking
its an unreadable way . now see the form below:
masking for setting GPIO2.1 as output
LPC_GPIO2->FIODIR |= 0x2;
equivalent of the form above with structures
#include...
I use adc to convert a potentiometer's voltage to equivalent digital data.
but here is a problem . it is always changing its value(debug mode) while I really didn't change volume
whats the problem?
how can we make it more precise
I am working with adc pripherial of lpc1768(cortexm3)
we read in datasheet that after convertion is done. the 'done' bit of adgdr will set to 1
but there is no 'setting' when convertion is finished
it is not necessary to make a library for it
since CMSIS is a complete set of codes available for configuring pripherials
to use it
go to examples of IAR or keil
refer to CMSIS folder
folder named "driver" is its library there.
you can freely add it anywhere inside your code
I want to have an interrupt routine/function for my MCU
my compiler is IAR
my micro is lpc1768
suppose we enabled interrupts formerly
write a program which handles External interrupt or reset interrupt
I programmed my micro so that it turns "deep power down" mode immediately after startup
now I cant debug it via jtag . I CANT even program it or erase its memory with jtag
I didnt examine ISP but suppose its not going to work too
no how can I erase its memory?
- - - Updated - - -
fortunately...
I am defining a library for gpio easeing work . so that you can program micro as easy as possible without hardware challenge
but its macros has problems
please help to make it
#ifndef __GPIO_H
#define __GPIO_H
//////////////////////////////////////////////////////////////////
#define PORT0 1...
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.