Download Print this page

Advertisement

Quick Links

AS064-AIRFRSHNRREFZ
Quick Start Guide for AS064 Air Freshener
This application note describes the working of an Automatic Air Freshener, using a 10-pin RL78/G15
microcontroller and a "Single Pole Four Throw" slide switch timed at 40 minutes, 20 minutes and 10 minutes. 12
bit interval timer is used for this application. This wakes up the microcontroller from stop mode every 273 milli
seconds, to perform several operations based on the state of microcontroller.
Contents
1.
Introduction .................................................................................................................................................... 3
2.
Scope of the document ................................................................................................................................. 3
3.
AS064 Air Freshener Hardware .................................................................................................................... 3
4.
Board Design.................................................................................................................................................. 5
4.1
Schematic Diagram ............................................................................................................................... 5
4.2
Bill of Materials (BOM) ........................................................................................................................... 6
4.3
Board Layout ......................................................................................................................................... 7
5.
AS064 Air Freshener Software ..................................................................................................................... 8
5.1
Specifications ......................................................................................................................................... 8
5.2
Switch States ......................................................................................................................................... 8
5.3
Outline of Operation .............................................................................................................................. 8
5.4
Algorithm Flowchart ............................................................................................................................... 9
6.
Software Explanation .................................................................................................................................. 10
6.1
List of Constants .................................................................................................................................. 10
6.2
List of Variables ................................................................................................................................... 10
6.3
List of Functions................................................................................................................................... 10
6.4
Specification of Functions .................................................................................................................... 10
6.5
Flag Variables ...................................................................................................................................... 11
7.
Software Overview ....................................................................................................................................... 12
7.1
Debugging using CS+ .......................................................................................................................... 12
7.2
8.
Device Setup ................................................................................................................................................ 16
9.
Typical Performance Graphs ...................................................................................................................... 17
10. Ordering Information ................................................................................................................................... 18
11. Revision History .......................................................................................................................................... 18
Doc Number Rev.1.00
Oct 25, 2024
User Manual
Page 1
© 2024 Renesas Electronics

Advertisement

loading
Need help?

Need help?

Do you have a question about the AS064 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Renesas AS064

  • Page 1: Table Of Contents

    Specification of Functions ........................10 Flag Variables ............................11 Software Overview ............................12 Debugging using CS+ .......................... 12 Flashing & Flash Programmer Settings: Tool Renesas Flash Programmer ........14 Device Setup ..............................16 Typical Performance Graphs ........................17 10. Ordering Information ........................... 18 11.
  • Page 2 Figure 1: Block Diagram of Air Freshener ........................ 3 Figure 2: MCU Section ............................. 4 Figure 3: Debug Section for MCU ..........................4 Figure 4: AS064-AIRFRSHNRREFZ Image Top and Bottom .................. 5 Figure 5: AS064-AIRFRSHNRREFZ Schematics ....................5 Figure 6: Top and Bottom Layer ..........................7 Figure 7: Top and Bottom Silkscreen Overlay ......................
  • Page 3: Introduction

    Figure 1: Block Diagram of Air Freshener Scope of the document The scope of the document is to explain the AS064 Air Freshener hardware and guide the user to get started on the same with step-by-step procedure on operating each module on the board.
  • Page 4: Figure 2: Mcu Section

    AS064 Air Freshener Quick Start Guide Figure 2: MCU Section Figure 3: Debug Section for MCU Figure 3 shows a recommended circuit for connection between the 14-pin connector and the RL78/G15 MCUs. Additional Document for User’s For more information, please refer the E1/E20/E2 Emulator, E2 Emulator Lite Manual.
  • Page 5: Board Design

    AS064 Air Freshener Quick Start Guide Board Design Figure 4: AS064-AIRFRSHNRREFZ Image Top and Bottom Schematic Diagram Figure 5: AS064-AIRFRSHNRREFZ Schematics Doc Number Rev.1.00 Page 5 Oct 25, 2024...
  • Page 6: Bill Of Materials (Bom)

    AS064 Air Freshener Quick Start Guide Bill of Materials (BOM) Table 1: AS064-Air Freshener BOM Designator Description Manufacturer Manufacturer Part # 0.1 µF ±10% 16V Ceramic Capacitor X7R Wurth C1, C3 885012206046 0603 (1608 Metric) Electronics Capacitor, 1uF Multilayer Ceramic MLCC...
  • Page 7: Board Layout

    AS064 Air Freshener Quick Start Guide Board Layout Figure 6: Top and Bottom Layer Figure 7: Top and Bottom Silkscreen Overlay Figure 8: Top and Bottom Solder Mask Doc Number Rev.1.00 Page 7 Oct 25, 2024...
  • Page 8: As064 Air Freshener Software

    AS064 Air Freshener Quick Start Guide AS064 Air Freshener Software Specifications Table 2: Peripheral Function and Uses Peripheral Function The 12-bit interval timer interrupt The 12-bit interval timer interrupt wakes up the microcontroller from stop mode at every interrupt as per the interval value...
  • Page 9: Algorithm Flowchart

    AS064 Air Freshener Quick Start Guide 4. Define Operation States • Include step states in order. Switch_State - to check current position with previous position, if same, it goes to stop mode to execute stop instruction, if not time_init function is called where the time period designated by the switch position is decremented.
  • Page 10: Software Explanation

    AS064 Air Freshener Quick Start Guide Software Explanation 6.1 List of Constants Table 4: lists global variables. Table 4: Global Variables unsigned char pre_sw_pos Previous position of check_switch_position() the switch unsigned char current_sw_pos Current position of check_switch_position() the switch 6.2 List of Variables Table 5: lists global variables.
  • Page 11: Flag Variables

    AS064 Air Freshener Quick Start Guide check_switch_position() Declaration int_check_switch_position() Description Reading the current switch position Argument None Return Value None time_init() Declaration time_init () Decrement time set by switch position Description Argument None Return Value None 6.5 Flag Variables Table 8: Flag Variables...
  • Page 12: Software Overview

    AS064 Air Freshener Quick Start Guide Software Overview 7.1 Debugging using CS+ 1. RL78/F14 can be programmed and debugged using CS+. Below are the steps to debug RL78/F14 using CS+. Open the RL78/G15 project in CS+ by double clicking the xxx.mtpj.
  • Page 13: Figure 12: Debug Window

    AS064 Air Freshener Quick Start Guide 3. Once download is successful CS+ will open debug window as below: Figure 12: Debug Window Once the download is completed click on Execute command as highlighted in Figure:13. Figure 13: Execute the Program Doc Number Rev.1.00...
  • Page 14: Flashing & Flash Programmer Settings: Tool Renesas Flash Programmer

    Steps for flashing using Renesas Flash Programmer 1. Connect board to E2 Emulator. 2. Open Renesas Flash Programmer. Create new Project. (Provide the Microcontroller as RL78/G15, G16, Project name and Project folder.) Select Tool Details and provide 3.3V Power Supply.
  • Page 15: Figure 16: Flashing The Board By Adding Hex File

    AS064 Air Freshener Quick Start Guide 3. Click on Operation tab and provide the path of hex file in Program file option. Figure 16: Flashing the board by adding Hex File Doc Number Rev.1.00 Page 15 Oct 25, 2024...
  • Page 16: Device Setup

    6. Power On/Off: An on/off switch or button to activate the device. Device Specifications The AS064-AIRFRSHNRREFZ, is a battery-operated Air freshener dispenser designed to release fragrance at set intervals. Here’s a basic explanation of its circuit and components: Main Components 1.
  • Page 17: Typical Performance Graphs

    AS064 Air Freshener Quick Start Guide Typical Performance Graphs Figure 18: Current Consumption at Standy and during Spray Figure 19: Current Consumption Graph during Standby and during Spray Doc Number Rev.1.00 Page 17 Oct 25, 2024...
  • Page 18: Ordering Information

    AS064 Air Freshener Quick Start Guide 10. Ordering Information Part Number Description AS064-AIRFRSHNRREFZ AS064-AIRFRSHNRREFZ Board 11. Revision History Revision Date Description 1.00 May 30, 2024 Initial Release Doc Number Rev.1.00 Page 18 Oct 25, 2024...

This manual is also suitable for:

As064-airfrshnrrefz