Hi,
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.
Sounds like a homework. Am I right?
yeh.
IO0SET address is 0xE0028004.
What will be the address location (in hexadecimal) where the PC should jump to when system call is made?
I Think answer will be : Register R1 and the address is 0xE002 8008.
Please confirm
So, you should solve the problem on your own.
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
indeed.
But I think the more common usage would not class a plain, vanilla microcontroller - such as the LPC2xxx - as a "SoC".
I have exactly the same problem. Anyone got a suggestion? This is quiet a common issue , please suggest me if you find any solution for here .
Landers said:This is quiet a common issue
Presumably, the same homework is set to the class each year?
Landers said:please suggest me if you find any solution for it
Why don't you copy the homework from someone who did it last year - like GSaha ... ?