EmbeddedRelated.com
Memfault Beyond the Launch

Set GPIO pin directly.

Started by Boris Kralik in LPC200017 years ago 8 replies

Hi all. I want to SET/CLR value of port directly, for example 'gpio1_pins = 0x88AA;'. I don't want to use gpio_pins_set/gpio_pins_clear for it,...

Hi all. I want to SET/CLR value of port directly, for example 'gpio1_pins = 0x88AA;'. I don't want to use gpio_pins_set/gpio_pins_clear for it, I want to use only few instructions to set/clear for all. Is it possible to set/clear port directly ? If yes, how I do it ? THX for answer


Timer: toggle pin on match

Started by samiehg in LPC200016 years ago 2 replies

Hi I want to toggle a GPIO at a fixed period. Would anybody please like to share some code (in C language) to use the timer External...

Hi I want to toggle a GPIO at a fixed period. Would anybody please like to share some code (in C language) to use the timer External Match Control feature? I don't want to use the interrupt service routine to toggle the pin. Thanks Samie PS Although I am using LPC2378, even if the code is written for some other micro of the same family, that should be fine.


LPC2468 FIOSET

Started by Martijn Broens in LPC200015 years ago 5 replies

Hi All, I'm working on a project buil don a LPC2468 and i'd like to set or clear gpio on bank4. but for some reason these pins will not change...

Hi All, I'm working on a project buil don a LPC2468 and i'd like to set or clear gpio on bank4. but for some reason these pins will not change state. I've set the SCS |= SCS_GPIOM_MASK; // set GPIOx to use Fast I/O Though not needed for this port (If I understand correctly this only involves port 0 and 1) Code snip: FIO4DIR = 0xFFFFFFFF; FIO4CLR = 0xFFFFFFFF; FIO4SET = ...


GPIO pin interrupts on LPC17xx

Started by Tim Mitchell in LPC200014 years ago 4 replies

On my LPC1754 I'm trying to set up a falling edge pin interrupt on P0.25. This is my first time with a cortex-m3 part, I am more used to the...

On my LPC1754 I'm trying to set up a falling edge pin interrupt on P0.25. This is my first time with a cortex-m3 part, I am more used to the ARM7's. I can't seem to get the interrupt to happen. Using Crossworks v2. I do this... IO0IntEnF|=(1 <


SSP LPC2148

Started by mgiaco82 in LPC200017 years ago 5 replies

Hello I have some questions concerning the SSP on the LPC2148. I need to speak with one ADC and one DAC. So therefore I need 2 slave...

Hello I have some questions concerning the SSP on the LPC2148. I need to speak with one ADC and one DAC. So therefore I need 2 slave select pins. But the LPC has only one. I know that I can use a normal GPIO for slave select, but I want to use the FIFO for TX and RX. Let me explain. When I speak to the ADC (8Ch x 16Bit) I need to write 8 word commands one for each CH. After each command th...


lpc2378 and lpcusb

Started by bluequaak in LPC200017 years ago 24 replies

Hello I'm trying to port lpcusb to the lpc2378. I changed the register addresses, and fixed the usb clock. I also "work arounded" the...

Hello I'm trying to port lpcusb to the lpc2378. I changed the register addresses, and fixed the usb clock. I also "work arounded" the borken usbconnect feature, by making this pin an GPIO and connect/disconnect manually and also fixed the USB_NEED_CLK bug in the errata sheet. The connect works fine and i can receive the DESCRIPTOR request on EP0 from the host. !> 8> S6D100


Saving Memory in LPC2103

Started by Graham Jones in LPC200014 years ago 16 replies

Hello Group, I have been developing a program on ARM7 LPC2103 for a year. The project has grown steadily. I am driving UART1, LCD, and some...

Hello Group, I have been developing a program on ARM7 LPC2103 for a year. The project has grown steadily. I am driving UART1, LCD, and some GPIO ports. Recently I started to add code to save into flash and discovered that my program was already 31KB and almost at the limit of the CPU's flash. I am using Keil but in the last few days I downloaded CrossWorks eval and rebuilt the project but ...


Interfacing a LPC2106 to a Dallas DS1990 iButton

Started by Ian Wraith in LPC200020 years ago 6 replies

Hello I am currently looking at using a LPC2106 in an access control unit to interface to a number of Dallas DS1990 iButtons. Am I...

Hello I am currently looking at using a LPC2106 in an access control unit to interface to a number of Dallas DS1990 iButtons. Am I correct in thinking that with a little code the iButtons could be interfaced to any of the LPC2106's GPIO pins ? Or would the iButton need to be in


LPC2468 UART1 Anomaly

Started by yellowlaser in LPC200014 years ago 5 replies

I am using an IAR LPC2468 development board and the IAR compiler for a company project. Just recently I noticed a strange issue with UART1. On...

I am using an IAR LPC2468 development board and the IAR compiler for a company project. Just recently I noticed a strange issue with UART1. On the LPC2468, UART1 has modem control support but we are not using it. The pin selects use these pins for GPIO. On rare occasions (once every 10 minutes) I receive on the LPC2468 more bytes than I transmit. The extra byte has always been a null charact...


Using DMA or EMC for fast parallel interface

Started by stangelanda in LPC200015 years ago 8 replies

I want to communicate with an LCD using an 8bit parallel interface with a clock speed of around 25MHz. I'm currently using the LPC2368 which...

I want to communicate with an LCD using an 8bit parallel interface with a clock speed of around 25MHz. I'm currently using the LPC2368 which doesn't have an LCD controller. I'm wondering if I can use the GPDMA to continuously write values to a GPIO register. It would output on 9 pins, the 8bits of data and an alternating clock signal. I don't know a lot about how DMA works. But I was hoping...


FIOPIN and FIOMASK

Started by nemecsek69 in LPC200016 years ago 4 replies

Referring to LPC2364/66/68/78 User Manual (UM10211), Rev.01 27 March 2007, page 119, Table 107 GPIO Register Map: "FIOPIN: Important: If...

Referring to LPC2364/66/68/78 User Manual (UM10211), Rev.01 27 March 2007, page 119, Table 107 GPIO Register Map: "FIOPIN: Important: If a FIOPIN register is read, its bit(s) masked with 1 in the FIOMASK register will be set to 0 regardless of the physical pin state". This is confusing for me. What does it mean? Could somebody make an example please? If the FIOPIN read chang


EXTINT0 on LPC2148 - not waking up

Started by Sutton Mehaffey in LPC200016 years ago 2 replies

Anybody know why this code doesn't wake up my LPC2148? Neither PD mode or IDLE mode causes a wakeup. Thanks. Sutton PINSEL2 = 4; //...

Anybody know why this code doesn't wake up my LPC2148? Neither PD mode or IDLE mode causes a wakeup. Thanks. Sutton PINSEL2 = 4; // GPIO on P1.25 for EXTINT0, enable JTAG INTWAKE = 1; // EXTINT0 causes wakeup EXTMODE = 1; // edge triggered EXTPOLAR = 1; // leading edge, high active count = 0; for(;;) { EXTINT = 1; // clear EXTINT0 bit PCON = 2; ...


lpc2378 external periphery

Started by specky_iii in LPC200015 years ago 4 replies

I use LPC2378 with the mini bus. Because the software was written when only rev '-' was available I had to access the external FPGA (8 bit wide)...

I use LPC2378 with the mini bus. Because the software was written when only rev '-' was available I had to access the external FPGA (8 bit wide) with the GPIO pins. And this worked OK. Now I have the revision A and tried to use the EMI. I tried several configurations but had problems to access the 8 bit periphery. BLS0 is used as write strobe. When I write a single byte I get 4 write strobes...


configure GPIO pin as a output.Is it right?

Started by shweta in LPC200014 years ago 43 replies

hi i am working on lpc2148 blueboard and my tool is keil uvision 4 i configure output pin like this: for control pin i used: port1==>...

hi i am working on lpc2148 blueboard and my tool is keil uvision 4 i configure output pin like this: for control pin i used: port1==> p1.16,p1.26 to p1.30 for data pin i used: port0==> p0.15 to p0.22 #define GLCD_DATA_DIR IO0DIR #define GLCD_DATA_SET IO0SET #define GLCD_DATA_CLR IO0CLR #define GLCD_CTRL_DIR IO1DIR #define GLCD_CTRL_SET IO1SET #define GLCD_CTRL_CLR IO


ARM7 Local Bus vs AHB

Started by croquettegnu in LPC200018 years ago 1 reply

Hello, you have answered a post concerning the FAST I/O feature and told that the FAST GPIO were on the local bus because this bus is the...

Hello, you have answered a post concerning the FAST I/O feature and told that the FAST GPIO were on the local bus because this bus is the fastest on the chip and so faster than the AHB bus I would like to know the differences between these two busses because as the ARM Core is a ARM7TDMI-S, you should be able to access directly the AHB bus which for me was the fastest bus... Thanks a ...


Plug-an-arm (LPC2129) CAN bus problems

Started by David in LPC200017 years ago 8 replies

Hi, I'm trying to add CAN support to some existing firmware that runs on a plug-an-arm (from newmicros.com). I'm having trouble...

Hi, I'm trying to add CAN support to some existing firmware that runs on a plug-an-arm (from newmicros.com). I'm having trouble getting anything CAN related to work. I have reduced my test code to some extremely minimal test code (adapted from this book: ): #include #define REG32 (volatile uint32_t*) #define GPIO


LPC2103 GPIO for 1-wire driver

Started by Charles Oram in LPC200016 years ago 6 replies

Hi, I have got a quick hack C program working with a Dallas/Maxim DS18B20 1-wire temperature sensor and it works fine when the sensor is...

Hi, I have got a quick hack C program working with a Dallas/Maxim DS18B20 1-wire temperature sensor and it works fine when the sensor is powered (pin 3 connected to 3.3V), but I can't get it to work properly with the DS18B20 in parasite power mode (pin 3 connected to ground). It reads the temperature OK, but the value returned is 85degC indicating that the chip failed to do the temperature ...


LPC2103 rev A and RTC deep sleep

Started by "Andrew Kohlsmith (mailing lists account)" in LPC200014 years ago 2 replies

Good afternoon, I've been experimenting with some low power modes, but I've run across something very puzzling. I have noticed that I get...

Good afternoon, I've been experimenting with some low power modes, but I've run across something very puzzling. I have noticed that I get lower power consumption with the LPC2103's standard PCON=2 mode, rather than its RTC deep sleep mode. It's not insignificant, either... I can hit about 2.4mA on my circuit with PCON=2. With all peripherals turned off and all GPIO set to known states,...


LPC1114 - Using AD to measure Wheatstone bridge

Started by Nico Christie in LPC200014 years ago 17 replies

Hello everyone! I'm using an LPC1114's ADC and a Wheatstone bridge to measure differential tension to determine the resistance value (Rx) of...

Hello everyone! I'm using an LPC1114's ADC and a Wheatstone bridge to measure differential tension to determine the resistance value (Rx) of a thermal probe. I'm using 2 ADC inputs to measure both differential nodes and a third is measuring the supply voltage for the bridge, and after some calculation, I get Rx. Power to the bridge is given using a GPIO pin, thus allowing huge energy sav...


LPC2378 and LPC2878 I/Os hard to set bit

Started by Felipe de Andrade Neves Lavratti in LPC200015 years ago 4 replies

Ppl, I have experiencing issues in bit setting on many ports of the mentioned LPCs, by changing the ports bit by bit sometimes it is necessary...

Ppl, I have experiencing issues in bit setting on many ports of the mentioned LPCs, by changing the ports bit by bit sometimes it is necessary to implement Buffers otherwise the pins don't change state. The P2 is the port witch gives more headache on both LPCs... I've tested with fast GPIO and not, still hard to change the pins, a simple write of '0' or '1' usually isn't enough. Has som...



Memfault Beyond the Launch