 Felly efallai yn wleidio, byddwn i'w gweithio ar gweithio yng Nghymru 2. Fel ychydig yn hyn o'r mode os o Keych yn yr environment IR. Al showing yn ddarmor ar ei mwylo iGR. Mae yw i'w gweithio ar gweithio ar gweithio mode yng Nghymru 2. Rwy'n cael ei hwn i gŵr i gael i'r lleol e'wough. ac yn fawr o'r ysgol o'r ymddiol. Felly, rwy'n meddwl ff7 o'r ddod. Mae'r ddodd yn fawr o'r ddod. Felly, rwy'n meddwl i'r ddodd, rwy'n meddwl i'r ddodd yn y s-RAM. Rwy'n meddwl i'n meddwl i'r ddodd ystodd Llywodraeth. Rwy'n meddwl i'r ddodd Llywodraeth. Felly, rwy'n meddwl i'r ddodd. Ond rwy'n meddwl i'r ddodd os yw'r ddodd ystodd. Felly, rwy'n meddwl i'r ddodd yn y broblem. Felly, rwy'n meddwl i'r ddodd. Rwy'n meddwl i'r ddodd yn ddodd fy ngwr awr Taskumer. Felly, rwy'n meddwl i'r ddodd Omnol Le L47 X. Rwy'n meddwl i'r ddodd, mae'r ddodd yn i s-RAM. Felly, rydych chi'n go i gael o'r bufyn cyllidon a'r ddod o Efryd-1 rymadd i'ch wneud, rydych chi fod yn cael ei pwysi, cael yma yna chi fod i'ch bwysi ddod o'r bwysi dei'r doit. Felly, rydych chi'n go i gael o'r bufyn cyllidon gwych, rwy'n cael i gael o'r bufyn cyllidon i'ch ddod. So mae'r gwahanol ydi'r ffordd yma sy'n gofyn gan SRAM. Mae'r ffordd y gallwn yn y gweinwyr hynny, roeddwn i'n gweinwyr hynny. O'r ffordd y gweinwyr hynny i'r pryd o'r bwylltau, a'r rhan o'r bwylltau roedd yn y gweinwyr hynny. ac o'r cyfnod ychydig ymlaen o'r unig ymlaen y boedd 0 a ymlaen a 3. Felly, i weld hynny yw'r wneud y cyfrifiadau a phobl ydych chi'n lawer o'r pin iddyn nhw, ac mae'n mynd i'n mynd i'n meddwl o'r pin a phobl 0 a phobl 3. Felly, mae'n ffordd ychydig yn ychydig yn ymddiol, i'w ddwy'r gweithio'r pin 0 o'r 3 volt. Mae'n ddweud o'r bwrdd. Mae'n ddweud o'r program, mae'n ddweud o'r adreffau'r ddweud o'r 2 miliwn. Felly, mae'n ddweud o'r sdlink ymlaen, mae'n ddweud o'r ddweud o'r ddweud o'r ddweud o'r ddweud. Felly mae'n rhan i ddaith hwn o'r mal uni. Llan ram number 2. Mae'n ddweud baiol i ni'n gyllid gwlad yn ffordd e-wmphwyr, a hyd yn gwyboxeb rhathasod winning niwr .bin. I now to do that. Open that file that then loads the file into the ST link utility tool and I now so that's the target program. I need to change my start address to be the RAM. So I need to change it from 800,000 hex, which is flash to 2 million, which is the RAM. And then start the application. So instantly the application will start on your board. You should now see a temperature reading on the board. So I am getting 17 degrees. OK. Maybe it is this cold in the room. And now looking at my multimeter. So I am getting numbers that are jumping around a bit, but I'm seeing anything from 200 and 380 up to about 415 on my meter. So if you remember the slide, it was showing that you will see various values. So it will jump up and down a bit. So you are seeing that on your meter. And yep, the average should be around the 400, 410 mark. So I am seeing the correct readings there from running from the SRAM on the device. So the next mode is sleep mode. So this is where only the core is stopped and all other peripherals are available to you. So here we are configured to be running from range number one. So we can run at 80 megahertz. We have a wake up time of about six cycles and all the peripherals are available to us if we want to use them. So it is only the core that is stopped and this will bring our current consumption down from what was about 150 microamps per megahertz down to about 37 microamps. So again it is fairly significant current saving that we are doing here just by switching off the Cortex M4 core. So low power sleep works in exactly the same way where the core is switched off but this time we have the main regulator switched off as well. And we lose our two peripherals again, the USB and the random number generator because we have not got the 48 megahertz. And this has now put us at about 48 microamps per megahertz. So again slightly higher than we were when we had range one enabled. But again a significant saving which I think we were at 150 microamps per megahertz in low power run mode. So again it is a significant saving. So now it is time for our third example. So this is the sleep and low power sleep. So we are using both of these two sleep modes so we will see different readings on our ammeter as we go through this example. So this is based on a fast data acquisition logger. So again so we are still doing our data logging application. So when we are in sleep mode we will be acquiring the data via the ADC from the temperature sensor. This will be transferred via the DMA so all the data will get stored in the RAM using the DMA. Then we will jump into run mode so that we can change the LCD information on the display. And then we will drop into low power sleep mode and use the UART to transmit the data out of the device to our laptops. So we will use a terminal program again so we will use the terminal program to receive the data that the DMA is transmitting. So again the core is a sleep while we are using the ADC and the UART and awake only to service the LCD routine. So the parameters we will use in this example in sleep mode we will be running at 4 MHz. In run mode we will be running at 4 MHz. In low power sleep we are limited to 2 MHz anyway so we will run the device at 1 MHz. So this is what we will see as we go through the application. So these are the different displays we will get when the core is running. So we will service the LCD to tell you that you are running section A. Then we will go into sleep mode where we are doing the ADC via DMA. So we are collecting all the reading from the temperature sensor. Then we will change to go into run mode B. Then we will be using the low power sleep mode to generate the output on the UART to our terminal program that we have got there. Then we will keep going round the loop. So you should see 1, 2, 3 unique current readings on your AMHETA as we go through this series of examples. So where you want to go now is to go into the section 1 again, system operating modes, example number 3, which is sleep and low power sleep. I don't need my SD-Link utility, I can close my current IAR workspace and now I go into sleep and low power sleep. EWAR, open my project. So I will build my project, so F7. My configuration is already up to date. I will now go project, download and download active application. I will now program the device. I have an error message there because my SD-Link utility is still connected. I can't access the debug environment from IAR, so I will disconnect SD-Link utility. Now my IAR tool should be able to talk to the SD-Link dongle. There we go. My device is now being programmed in. I will configure my termite tool now. So my termite tool needs to be 9600 board, 8 data, no parity, one stop. I go back to termite. I will go into settings and change that to 9600, 8, none and one. OK. Now when I reset my board, I may throw up first. Now reset my board.