EmbeddedRelated.com

how to Toggle port 0.26

Started by Philipp Brejcha in LPC200014 years ago 4 replies

Hi everyone, we bought a Evalboard from Embedded Artist (LPC2478 and the QVGA...

Hi everyone, we bought a Evalboard from Embedded Artist (LPC2478 and the QVGA baseboard) http://www.embeddedartists.com/products/kits/lpc2478_kit.php but we are not able to toggle the port 0.26. There is no jumper, because if we run the demo application (which is only available as *.hex) the speaker (connected to P0.26) makes a sound. I set the PINSEL to 0x0 (GPIO mode) The PINMODE ...


Re: Fast GPIO scaning speed of LPC2478

Started by Bernardo in LPC200013 years ago 2 replies

As others noticed you miscalculated the period but there are more errors in your post. 1) miscalculated the period. 2) For 5MHz the period...

As others noticed you miscalculated the period but there are more errors in your post. 1) miscalculated the period. 2) For 5MHz the period is 0.2us as you say but then you state that 'i required interrupts on raising edges only. So interrupt may arrive at every 0.1us.' Two possible mistakes in this sentence. A wave period is indeed it's full cycle as so you have one rising edge per perio...


How to add uarts to an lpc2xxx

Started by Christophe in LPC200018 years ago 4 replies

Hello, for my project, I need more than two uarts that my lpc2148 provides. Futhermore I want tokeep uart_0 for code download and...

Hello, for my project, I need more than two uarts that my lpc2148 provides. Futhermore I want tokeep uart_0 for code download and communictaion with the board. So, as I am a newbie, I am wondering how it is possible to add more uarts : SPI to uart converter like the MAX3100, I2C to uart or perhaps, if it is possible software uart with GPIO. Any advices will be helpful... Thanks for yo...


Writing to IOPIN on LPC21xx possible?

Started by Aalt Lokhorst in LPC200019 years ago 6 replies

Hello All, In the Philips document 'UM_LPC21XX_LPC22XX_2.pdf' on page 137 I read: Applications that require instanatneous...

Hello All, In the Philips document 'UM_LPC21XX_LPC22XX_2.pdf' on page 137 I read: Applications that require instanatneous appearance of zeros and ones on the respected parallel port can use direct access to port?s corresponding GPIO Pin Value Register (IOPIN). Ass


LPC17xx.n header file Questions

Started by hrh1818 in LPC200014 years ago 1 reply

The following code snippet comes from an example that came with a development board. // Set GPIO - P1_24, P1_25, P1_28, P1_29 - to be...

The following code snippet comes from an example that came with a development board. // Set GPIO - P1_24, P1_25, P1_28, P1_29 - to be outputs LPC_GPIO1-> FIODIR |= LED_ALL; LPC17xx.h contains the following #define #define LPC_GPIO1 ((LPC_GPIO_TypeDef *) LPC_GPIO1_BASE ) What is the meaning of " * " in this context. Multiplying a type definition by a memory address has me mystif


Power Down mode for LPC2368

Started by Ajay Sharma in LPC200013 years ago 4 replies

Hello All, I am having a prototype board with LPC2368 MCU on it. I try to follow the sequence of: PCONP = 0x00; PCON = 0x0e; to disable...

Hello All, I am having a prototype board with LPC2368 MCU on it. I try to follow the sequence of: PCONP = 0x00; PCON = 0x0e; to disable all the peripherals and power down the MCU. But for some reason the current consumption on the device is still 15mA. As per the datasheet it should be in uA. I am not sure where the current goes. By default I have all the gpio pins pulled up using PIN...


FIO and interrupt disabling

Started by brian_myers888 in LPC200015 years ago 12 replies

Hello all - I have a short function which checks the state of a GPIO pin, and returns TRUE or FALSE. Simple stuff. However, I was seeing...

Hello all - I have a short function which checks the state of a GPIO pin, and returns TRUE or FALSE. Simple stuff. However, I was seeing this function sometimes return TRUE, when I expected it to never do so (TRUE is intended to indicate presence of a battery charger, and I don't have one connected). I'm not able to view the pin on a scope because of the nature of the pullup resistor (I'm ...


LPC2148 JTAG pin configuration

Started by Sutton Mehaffey in LPC200016 years ago 1 reply

I have pullups on my JTAG lines (works fine), but noticed that in the pin definitions on page 73 of the user manual that the JTAG pins already...

I have pullups on my JTAG lines (works fine), but noticed that in the pin definitions on page 73 of the user manual that the JTAG pins already have pullups on them. Is this when they are defined as GPIO or do they have them when configured as JTAG? If I don't really need them, I want to remove my 10K pullups from my board. Sutton


pin schematic for lpc17xx

Started by Tim Mitchell in LPC200012 years ago 3 replies

Has anyone seen anywhere a GPIO pin schematic for the LPC17xx devices, i.e. the circuitry inside the pin. I have a feeling I have seen it in the...

Has anyone seen anywhere a GPIO pin schematic for the LPC17xx devices, i.e. the circuitry inside the pin. I have a feeling I have seen it in the datasheet/user manual but now cannot find it. Or I might be thinking of Atmel AVR. I really just want to know what protection diodes are on the pins and how they are connected - I am curious about what happens when you put 5V on the 5V tolerant pins an...


GPIO write and read speed

Started by hsch...@yahoo.com in LPC200013 years ago 4 replies

If I have a port pin (i.e., P0.0) configured as output and tie it to another port pin (i.e., P0.1) configured as input, and in the codes the first...

If I have a port pin (i.e., P0.0) configured as output and tie it to another port pin (i.e., P0.1) configured as input, and in the codes the first instruction is to set P0.0, followed by next instruction to read P0.1. Will the execution of these instructions be slowed down so that P0.1 will register the correct state of P0.0? ------------------------------------


Doubt on FIOPIN functionality

Started by dhan...@solus.co.in in LPC200014 years ago 7 replies

Hi to all, I am facing a different problem with my hardware when i tried to work GPIO's. I am using LPC2388 and Keil3 I written a test code...

Hi to all, I am facing a different problem with my hardware when i tried to work GPIO's. I am using LPC2388 and Keil3 I written a test code in that i have configured P0.23 to P0.26 as Inputs and P0.27, P0.28 as outputs This is my piece of code #define OP_BUZZ2_ON (FIO0CLR3 |= 0X08) #define OP_BUZZ2_OFF (FIO0SET3 |= 0X08) #define IP_DURESS_STATE ((FIO0PIN2 & 0X80)?OFF:ON)


LPC17xx Flash download fail

Started by Nico Christie in LPC200014 years ago 3 replies

Hi guys, I'm having a little big problem with my uC. I'm writing code for an LPC1751 that enters Power Down mode almost right after startup. It...

Hi guys, I'm having a little big problem with my uC. I'm writing code for an LPC1751 that enters Power Down mode almost right after startup. It sets up the system and peripherals and then enters Power Down. The problem is neither a GPIO nor RTC interrupt ever wake it up. Both were working fine but it seems I missed something and now I can't re-flash the uC. I'm guessing because the ULink2 tri...


Device halts when SPI clock divider is set...

Started by Me in LPC200015 years ago 4 replies

I'm using an LPC2148 on a project. I need to interface with an SPI device with the microcontroller as the master. I'm just setting things up...

I'm using an LPC2148 on a project. I need to interface with an SPI device with the microcontroller as the master. I'm just setting things up now, trying to get a clock signal out from the '2148. Right now my program doesn't do much. There is a polled serial output routine that emits debug messages and I toggle a GPIO pin to show that the micro is alive. Everything worked well until I...


PWM - no output signal

Started by Henry in LPC200013 years ago 2 replies

Hello, my intention is to control a fan using PWM1[4] of an LPC2468. Therefore I configured P1.23 as PWM1[4]. MR0 controls the cycle length...

Hello, my intention is to control a fan using PWM1[4] of an LPC2468. Therefore I configured P1.23 as PWM1[4]. MR0 controls the cycle length and = PWM1 shall run in Single Edge Controlled Mode. The timing is ok, I checked that by setting/resetting a GPIO pin in the int= errupt handler. The problem is that I don't get a signal at PWM1[4] (=3DP1.23). P1.23 is ok= . when I configure it as an ...


VPBDIV Setting Changes

Started by scottkelsall in LPC200018 years ago 3 replies

Hi I am trying to verify that my LPC2129 is running at 60MHz. I am simply using the IOPIN command to toggle a GPIO pin.However the pin...

Hi I am trying to verify that my LPC2129 is running at 60MHz. I am simply using the IOPIN command to toggle a GPIO pin.However the pin stays high for 100ns not the expected 16.666ns. I have set the VPDIV setting to 0x01; therefore PCLK is running at the same frequency as the CCLK, and the mul and div settings are correct to multiply up to 60M from an Oscillator of 20M I have noti...


Compatibility of LPC2148

Started by chintanjoshi2008 in LPC200015 years ago 1 reply

Hi, In which cases do we need to use pull up or pull down resisters? I need to interface some gates and buffers to the gpio pins of LPC2148 as...

Hi, In which cases do we need to use pull up or pull down resisters? I need to interface some gates and buffers to the gpio pins of LPC2148 as dead time generator circuit. 1.Is there any dead time register available in LPC2148's PWM module as in case of some Texas instrument's DSPs or will I have to use timers and capture interrupts? 2.how would I know if the logic family I am using is co...


LPC2378 SPI SSEL

Started by bluehash9 in LPC200015 years ago 4 replies

I'm new to the chip evaluating if its SPI bus can be used for interfacing with some components. > From all the examples I've read on this forum,...

I'm new to the chip evaluating if its SPI bus can be used for interfacing with some components. > From all the examples I've read on this forum, it seems everyone is running the SSEL line in GPIO mode and not the actual SSEL function. I wrote up a simple example with the LPC as the Master and the MOSI, SCK and SSEL connected to a scope. The Clock and the MOSI both look great, but the SSEL lin


LPC2387 ssp module

Started by "sum...@yahoo.com [lpc2000]" in LPC20009 years ago 3 replies

In my project I use SPI to UART converter IC. In lpc2387 I connect SSP! pins to that IC. I check my SSP communication it work properly. But in...

In my project I use SPI to UART converter IC. In lpc2387 I connect SSP! pins to that IC. I check my SSP communication it work properly. But in normal mode I always get 0xFF value from IC. Below is my code PINSEL0 = 0x005A8000; // uart2,ssp chip select worl as GPIO it is always 0 ssp ini PCONP |= (1 < < 10); /* by default, it's enabled already, for safety reason */ SSP1CR0 = 0x0707;


LPC2138 5V tolerant GPIO

Started by dsourgen in LPC200015 years ago 6 replies

Hello, During tests of my new card, it seems I have burnt 3 digital inputs on my LPC2138: P0.28, P0.29, P0.30 (No reaction on these pins wheter...

Hello, During tests of my new card, it seems I have burnt 3 digital inputs on my LPC2138: P0.28, P0.29, P0.30 (No reaction on these pins wheter I configure them as digital inputs or outputs). I applied 5V logic levels on these inputs and tried to read them. This worked during a while. To me, two things may have happened: - LPC2138 "ON OFF" while 5V was still applied on these inputs.


SPI Slave / SSEL0 using as GPIO ?

Started by Herbert Demmel in LPC200018 years ago 6 replies

Hi all, I plan to use the LPC2138 or LPC2148 SPI (SCK0, MISO0, MOSI0) as a SPI slave only device. Is it possible to use SSEL0 for any other...

Hi all, I plan to use the LPC2138 or LPC2148 SPI (SCK0, MISO0, MOSI0) as a SPI slave only device. Is it possible to use SSEL0 for any other function (e.g. PWM2) then or must SSEL0 tied to ground in any case when using the LPC as slave only device? Regards Herbert