using System; using System.Data; using System.Data.SqlClient; /// /// Demonstrates how to work with SqlConnection objects /// class SqlConnectionDemo { static void Main() { // 1. Instantiate the connection SqlConnection conn = new SqlConnection( "Data Source=(local);Initial Catalog=Northwind;Integrated Security=SSPI"); SqlDataReader rdr = null; try { // 2. Open the connection conn.Open(); //...
[Read More]
Microsoft Access Essential Queries
Example 1:Select * from customersExample 2:select * from customers where Country ='uk'Example 3:select City,Country from customers order by cityExample 4:select City,Country from customers order by 1Example 5:select distinct City,Country from customers order by 1Example 6:Select Count(*) from Customers where Country ='ukExample 7:Select sum(Quantity) from[order details] where productid = 11Example 8:Select...
[Read More]
LED Blink ATmega32
here is the bascom code :$regfile = "m32def.dat"$crystal = 8000000Config Portd = OutputDo Portd.6 = 0 Waitms 500 Portd.6 = 1 Waitms 500LoopEndpin10 ---> vccpin11 ---> gndpin20 ---> led+resistor(470 ohm)
Linux Commands
to verify your pci hardwares : /sbin/lspci
PWM speed control (pic18f4550)
here is the ccs code:#include #fuses HS,NOWDT,NOPROTECT,NOLVP#use delay(clock = 20000000)void main() { unsigned int16 value;// Input variable setup_adc_ports(ALL_ANALOG);// Input combination setup_adc(adc_clock_internal);// ADC clock set_adc_channel(0);// Select RA0 setup_ccp1(ccp_pwm); // Select timer and mode setup_timer_2(T2_DIV_BY_16,248,1); // Clock rate & output period while(1) { value=read_adc();//Get input byte set_pwm1_duty(value);// Set on time }}everything is...
[Read More]