kbot.c File Reference

This module contains all support for the KoreBot board. More...

Include dependency graph for kbot.c:

Go to the source code of this file.

Functions

int kbot_SetProcVCore (unsigned int voltage)
int kbot_SetLeds (unsigned char value)


Detailed Description

This module contains all support for the KoreBot board.

This module contains all support for the KoreBot board

Support for the KoreBot board

Author:
CÚdric Gaudin (K-Team SA)
Note:
Copyright (C) 2004 K-TEAM SA
Bug:
none discovered.
Todo:
nothing.

Definition in file kbot.c.


Function Documentation

int kbot_SetLeds ( unsigned char  value  ) 

This function changes the leds connected to I▓C on the KoreSDK.

Definition at line 81 of file kbot.c.

References KNET_BUS_ANY, knet_close(), and knet_open().

Here is the call graph for this function:

int kbot_SetProcVCore ( unsigned int  voltage  ) 

This function changes the VCore voltage of the processor.

Parameters:
voltage required $V_{core}$ voltage in [mV] (range 600-1400)
Returns:
An error code:
  • <0 on error
  • 0 on success

Formula used to calculate the Vdac voltage:

$V_{dac} = V_{fb} * (1 + \frac{R1}{R2} + \frac{R1}{R3}) - \frac{R1}{R2} * V_{core}$

$V_{fb} = 700[mV]$, $R1 = 4.7[k\Omega]$, $R2 = 1.5[k\Omega]$, $R3 = 2.2[k\Omega]$

Definition at line 52 of file kbot.c.

References KB_ERROR, KB_ERROR_OUTOFRANGE, LTC1663_BG, and ltc1663_SendCommand().

Here is the call graph for this function:


Generated on Wed Dec 15 11:49:28 2010 for KoreBot Library by  doxygen 1.5.5