Anyone can help me to solve this problem.
For LPC2148 SoC, a software system call, number 0x55 need to be implemented in assembly language. This system call is used to measure the CPU temperature and raise an alarm if the CPU is overheated. Assume ARM mode of operation. Temperature readings are measured using ADC0 of LPC2148 and the ADC reading is available in raw 10 bit format in arm register R3, you need not to write the code for ADC initialization or control. Threshold value of temperature to activate the alarm is equal to half of the full scale ADC value (1024). Also assume that all the GPIO settings are already done and you just need to write appropriate bits in IOSET register to raise the alarm. Buzzer is connected to P0.10. IO0SET address is 0xE0028004.
1) What will be the address location (in hexadecimal) where the PC should jump to when system call is made? 2) What should be the instruction at that address (answer from A) location in order to properly handle the system call? 3) Write the assembly code for system call handler. Do not assume any automation of procedures from assembler.
GSaha said:LPC2148 SoC
It's not a SoC ("System-on-Chip") - it's just a plain ol' microcontroller.
Andy, what makes a "SoC" a SoC? LPC2148 contains flash, ram, uart, etc. So everything a "system" needs. Actually, it has more on-chip then my good ol' Atari ST on-board.
Having flash, ram, uart, etc, on board makes it a microcontroller.
A SoC has a microcontroller plus other system features - such as radio.
NXP themselves do not classify the LPC2xxx as SoC:
Seen this. Still, what make a SoC for you. NXP took over the weird classification from Freescale I think. FSL divides into those with Flash (MCU) and those w/o (MPU). But both are IMHO "SoC"s as they contain at least RAM and peripherals. But it's an academic discussion. :-)
42Bastian Schick said:what make a SoC for you
As I said, something more than just a microcontroller.
42Bastian Schick said:it's an academic discussion
But I think the more common usage would not class a plain, vanilla microcontroller - such as the LPC2xxx - as a "SoC".
View all questions in Classic processors forum