"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"",
"#Variable declaration:",
"n=8.0 #Number of bits in word",
"cl=2.0*10**6 #Clock frequency in Hertz",
"",
"#Calculations:",
"tp=1/cl #Calculating time period for one clock pulse ",
"tpn=tp*10**6 #Calculating time period for one clock pulse ",
"tm=(n+1)*tp #Calculating total time required for conversion",
"tmn=tm*10**6 #Calculating total time required for conversion ",
"",
"#Results:",
"print('\\n Time for one clock pulse= %.1f uS'% tpn)",
"print('\\n Time for resetting SAR and conversion= %.1f uS'%tmn)"
],
"language": "python",
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"",
" Time for one clock pulse= 0.5 uS",
"",
" Time for resetting SAR and conversion= 4.5 uS"
]
}
],
"prompt_number": 9
},
{
"cell_type": "code",
"collapsed": true,
"input": [],
"language": "python",
"outputs": []
}
]
}
]
}