STEVAL-ISQ002V1 STMicroelectronics, STEVAL-ISQ002V1 Datasheet - Page 22

BOARD EVAL BASED ON ST72264G1

STEVAL-ISQ002V1

Manufacturer Part Number
STEVAL-ISQ002V1
Description
BOARD EVAL BASED ON ST72264G1
Manufacturer
STMicroelectronics
Datasheets

Specifications of STEVAL-ISQ002V1

Main Purpose
Interface, PMBus
Embedded
Yes, MCU, 8-Bit
Utilized Ic / Part
ST72F264
Primary Attributes
The PMBus™ Interface Using the ST7 I2C Peripheral
Secondary Attributes
Firmware in C Language
Product
Power Management Modules
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
497-6423

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
STEVAL-ISQ002V1
Manufacturer:
STMicroelectronics
Quantity:
1
PMBus commands and source code
3.3
22/43
Example
This section explains how to use the PMBus driver. An example operation of write/ read
commands are shown.
/*****************************************************************************
COPYRIGHT 2005 STMicroelectronics
Source File Name : Main.c
Group
Author
Date First Issued: 01/09/2006
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
********************************Documentation**********************************
General Purpose - Contains main source code. In this file, the PMBus command files
are written.
******************************************************************************/
#include "ST7_config.h"
#include "main.h"
#include "ST7_hr.h"
extern volatile unsigned int SMB_TimeCount;
#pragma space extern [] @tiny
addressing memory */
extern unsigned char Data_Buff [32] ;
extern volatile unsigned char SMBus_Mode ;
extern volatile unsigned char SMB_Err_Status ;
address */
static volatile unsigned char PMBus_SlaveAdd = 0x80;
address */
static volatile unsigned char PMBus_SlaveAdd = 0x80;
/*-----------------------------------------------------------------------------
ROUTINE NAME : Main
INPUT
OUTPUT
DESCRIPTION
COMMENTS
-----------------------------------------------------------------------------*/
void main()
{
unsigned char temp ;
SMBs_Address_t PMBus_Err ;
/*----------------------- Port A configuration ----------------------------*/
PADDR &= (unsigned char)~PORTA_DEFAULT;
PAOR = (unsigned char)(PORTA_DEFAULT) ;
THE SOFTWARE INCLUDED IN THIS FILE IS FOR GUIDANCE ONLY. STMicroelectronics
SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL
DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM USE OF THIS SOFTWARE.
/*----------------------- Port C configuration ----------------------------*/
PCDDR = CONTROL ;
PADDR = PORTA_DEFAULT ;
: None
: None
: Using this file, user can write/ read PMBus commands.
: Programs jumpts into this routine when microcontroller is reset
/* Variables to differentiate the different SMBus transaction types */
: IMS Systems Lab
: Telecom Team
/* Contains the global variables used in main.c */
Doc ID 13286 Rev 2
/* PC0 floating input, others push pull output */
/* To check errors in PMBus communication */
/* Contains the register and flags for ST7 */
/* To force following variables into short
/* Other pins configured as floating input */
/* Buffer to store data */
/* Master to address slave with this
/* Master to address slave with this
/* Fcpu defined as 8MHz */
/* Time count variable */
/* Error status */
AN2511

Related parts for STEVAL-ISQ002V1