To add to cpals statement, in MA "All power for AC powered smoke detectors shall be taken from a single branch circuit which also provides other electrical service to habitable occupiable spaces." The smoke detector installation requirements apply to new construction, substantial renovations, or if you add a bedroom.
Greg you should do some reasearch as to what is required in your area.